PHP Класс Psr7Middlewares\Middleware\Https

Наследование: use trait Psr7Middlewares\Utils\RedirectTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Set basic config.
public __construct ( )

__invoke() публичный Метод

Execute the middleware.
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
Результат Psr\Http\Message\ResponseInterface

checkHttpsForward() публичный Метод

Configure whether check the following headers before redirect: X-Forwarded-Proto: https X-Forwarded-Port: 443.
public checkHttpsForward ( boolean $checkHttpsForward = true ) : self
$checkHttpsForward boolean
Результат self

includeSubdomains() публичный Метод

Configure the includeSubDomains HSTS directive.
public includeSubdomains ( boolean $includeSubdomains = true ) : self
$includeSubdomains boolean
Результат self

maxAge() публичный Метод

Configure the max-age HSTS in seconds.
public maxAge ( integer $maxAge ) : self
$maxAge integer
Результат self