ContentLengthResponseHeader implements MiddlewareInterface

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

process()  : ResponseInterface
Adds the content length

Methods

process()

Adds the content length

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

        
On this page

Search results