HttpsRedirect
in package
implements
MiddlewareInterface
Returns 301/308 in case the request was made to plain HTTP.
Tags
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