PHP 클래스 Psr7Middlewares\Middleware\EncodingNegotiator

상속: use trait Psr7Middlewares\Utils\NegotiateTrait, use trait Psr7Middlewares\Utils\AttributeTrait
파일 보기 프로젝트 열기: oscarotero/psr7-middlewares 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $encodings = null ) Constructor. Defines de available encodings.
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
encodings ( array $encodings ) : self Configure the available encodings.
getEncoding ( Psr\Http\Message\ServerRequestInterface $request ) : string | null Returns the encoding.

메소드 상세

__construct() 공개 메소드

Constructor. Defines de available encodings.
public __construct ( array $encodings = null )
$encodings array

__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

encodings() 공개 메소드

Configure the available encodings.
public encodings ( array $encodings ) : self
$encodings array
리턴 self

getEncoding() 공개 정적인 메소드

Returns the encoding.
public static getEncoding ( Psr\Http\Message\ServerRequestInterface $request ) : string | null
$request Psr\Http\Message\ServerRequestInterface
리턴 string | null