Method | Description | |
---|---|---|
__construct ( ) | Set basic config. | |
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
checkHttpsForward ( boolean $checkHttpsForward = true ) : self | Configure whether check the following headers before redirect: X-Forwarded-Proto: https X-Forwarded-Port: 443. | |
includeSubdomains ( boolean $includeSubdomains = true ) : self | Configure the includeSubDomains HSTS directive. | |
maxAge ( integer $maxAge ) : self | Configure the max-age HSTS in seconds. |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
return | Psr\Http\Message\ResponseInterface |
public checkHttpsForward ( boolean $checkHttpsForward = true ) : self | ||
$checkHttpsForward | boolean | |
return | self |
public includeSubdomains ( boolean $includeSubdomains = true ) : self | ||
$includeSubdomains | boolean | |
return | self |