Esc
API Index — Namespaces, Packages, Reports, Indices
LocationHeaderMiddleware
in package
implements
MiddlewareInterface
Table of Contents
Interfaces
- MiddlewareInterface
Properties
- $correctPort : int
Methods
- __construct() : mixed
- process() : ResponseInterface
- buildUrl() : string
Properties
$correctPort
private
int
$correctPort
Methods
__construct()
public
__construct(int $correctPort) : mixed
Parameters
- $correctPort : int
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacebuildUrl()
private
buildUrl(array<string, string|int> $parsedUrl) : string
Parameters
- $parsedUrl : array<string, string|int>