메소드 | 설명 | |
---|---|---|
__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. |
public __construct ( array $encodings = null ) | ||
$encodings | array |
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 |
public static getEncoding ( Psr\Http\Message\ServerRequestInterface $request ) : string | null | ||
$request | Psr\Http\Message\ServerRequestInterface | |
리턴 | string | null |