ContentLengthResponseHeader implements MiddlewareInterface
Read onlyYes
FinalYes
Add content-length HTTP header to the response.
Notice that all Content outside the length of the content-length header will be cut off! Therefore, content of unknown length from later-on middlewares and if admin users are logged in (admin panel might show...), we disable it!
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(Context $context) : mixed
Parameters
- $context : Context
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface