Esc
API Index — Namespaces, Packages, Reports, Indices
ResponseMiddleware
in package
implements
MiddlewareInterface
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- buildTraceEcho() : string
- Reconstruct the request line + headers for a TRACE echo body, mirroring
Apache's ap_send_http_trace() (http_filters.c:1130). Format is the request
line, each header as
Name: value, then a terminating blank line — the message/http representation the client sent. Header names/values are passed through verbatim (TRACE is an introspection echo); CR/LF inside a value is stripped so a crafted header can't inject extra wire lines. - dispatchRoute() : ResponseInterface
- process() : ResponseInterface
- dispatchRawRoute() : ResponseInterface
Methods
buildTraceEcho()
Reconstruct the request line + headers for a TRACE echo body, mirroring
Apache's ap_send_http_trace() (http_filters.c:1130). Format is the request
line, each header as Name: value, then a terminating blank line — the
message/http representation the client sent. Header names/values are
passed through verbatim (TRACE is an introspection echo); CR/LF inside a
value is stripped so a crafted header can't inject extra wire lines.
public
static buildTraceEcho(string $method, string $uri, string $protocol, array<string, string> $headers) : string
Parameters
- $method : string
- $uri : string
- $protocol : string
- $headers : array<string, string>
Return values
stringdispatchRoute()
public
dispatchRoute(array<string, mixed> $route, array<string, mixed> $params, string $method) : ResponseInterface
Parameters
- $route : array<string, mixed>
- $params : array<string, mixed>
- $method : string
Return values
ResponseInterfaceprocess()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacedispatchRawRoute()
private
dispatchRawRoute(array<string, mixed> $route, array<string, mixed> $params, string $method) : ResponseInterface
Parameters
- $route : array<string, mixed>
- $params : array<string, mixed>
- $method : string