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!

Internal

Table of Contents

Interfaces

MiddlewareInterface

Methods

__construct()  : mixed
process()  : ResponseInterface

Methods

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

        
On this page

Search results