ContentLengthResponseHeader implements MiddlewareInterface
Send content-length header.
Notice that all HTML content outside the length of the content-length header will be cut off! Therefore content of unknown length from included PHP-scripts and if admin users are logged in (admin panel might show...) or if debug mode is turned on, we disable it!
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- process() : ResponseInterface
- Adds the content length
Methods
process()
Adds the content length
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface