yxorP Documentation

RedirectMiddleware
in package

Table of Contents

HISTORY_HEADER  = 'X-Proxy-Redirect-History'
STATUS_HISTORY_HEADER  = 'X-Proxy-Redirect-Status-History'
$defaultSettings  : array<string|int, mixed>
$nextHandler  : mixed
__construct()  : mixed
__invoke()  : mixed
checkRedirect()  : PromiseInterface|ResponseInterface
modifyRequest()  : RequestInterface|ServerRequest|Request
guardMax()  : mixed
redirectUri()  : UriInterface|Uri
withTracking()  : PromiseInterface

Constants

STATUS_HISTORY_HEADER

public mixed STATUS_HISTORY_HEADER = 'X-Proxy-Redirect-Status-History'

Properties

$defaultSettings

public static array<string|int, mixed> $defaultSettings = ['max' => 5, 'protocols' => ['http', 'https'], 'strict' => false, 'referer' => false, 'track_redirects' => false]

Methods

__construct()

public __construct(callable $nextHandler) : mixed
Parameters
$nextHandler : callable
Return values
mixed

Search results