Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
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
ResponseInterface

buildUrl()

private buildUrl(array<string, string|int> $parsedUrl) : string
Parameters
$parsedUrl : array<string, string|int>
Return values
string
On this page