Documentation

HttpsRedirect
in package
implements MiddlewareInterface

Returns 301/308 in case the request was made to plain HTTP.

Tags
since
18.0.41

Interfaces, Classes and Traits

MiddlewareInterface

Table of Contents

__construct()  : mixed
process()  : ResponseInterface

Methods

__construct()

public __construct(ResponseFactoryInterface $factory[, bool $browserRequest = false ]) : mixed
Parameters
$factory : ResponseFactoryInterface
$browserRequest : bool = false

Send HTTP 308 in order to preserve POST request in browsers

Return values
mixed

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

Search results