final | |
|---|---|
readonly | |
implements |
MiddlewareInterface |
Rejects a request whose body exceeds a configured byte cap with an id-less JSON-RPC error on HTTP 413, reading a body of indeterminate size only up to one byte past the cap.
| Methods | ||
|---|---|---|
public
|
__construct(int<0, max> $maxBytes, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory)
|
# |
public
|
process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
# |