‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader:

Public Member Functions

 __construct (private Context $context)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Detailed Description

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!

Definition at line 35 of file ContentLengthResponseHeader.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader::__construct ( private Context  $context)

Definition at line 37 of file ContentLengthResponseHeader.php.

Member Function Documentation

◆ process()

TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 
)

Definition at line 39 of file ContentLengthResponseHeader.php.