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

Rewrites the port in an outbound Location header to a configured value.

Extracted from src/App.php (Phase 0 structural relocation). FQCN changed to ZealPHP\Middleware\LocationHeaderMiddleware (was ZealPHP\LocationHeaderMiddleware); it had zero live references in the codebase.

Table of Contents

Interfaces

MiddlewareInterface

Properties

$correctPort  : int

Methods

__construct()  : mixed
process()  : ResponseInterface
buildUrl()  : string

Properties

Methods

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