PHP 클래스 Psr7Middlewares\Middleware\Https

상속: use trait Psr7Middlewares\Utils\RedirectTrait
파일 보기 프로젝트 열기: oscarotero/psr7-middlewares

공개 메소드들

메소드 설명
__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