CompressionUtility implements SingletonInterface
This class contains compression functions for the TYPO3 Frontend. It can be used only in EXT:frontend/Classes/Http/RequestHandler.php
this is an internal TYPO3 implementation and solely used for EXT:frontend and not part of TYPO3's Core API.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $contentLength : int
- Accumulates content length for the compressed content. It is necessary to replace the Content-length HTTP header after compression if it was added by TYPO3 before compression.
Methods
- compressionOutputHandler() : string
- Corrects HTTP "Content-length" header if it was sent by TYPO3 and compression is enabled.
Properties
$contentLength
Accumulates content length for the compressed content. It is necessary to replace the Content-length HTTP header after compression if it was added by TYPO3 before compression.
protected
int
$contentLength
= 0
Methods
compressionOutputHandler()
Corrects HTTP "Content-length" header if it was sent by TYPO3 and compression is enabled.
public
compressionOutputHandler(string $outputBuffer, int $mode) : string
Parameters
- $outputBuffer : string
-
Output buffer to compress
- $mode : int
-
One of PHP_OUTPUT_HANDLER_xxx constants
Tags
Return values
string —Compressed string