ContentLengthResponseHeader

final readonly class \TYPO3\CMS\Frontend\Middleware\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!

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