2 declare(strict_types = 1);
18 use Psr\Http\Message\ResponseInterface;
19 use Psr\Http\Message\ServerRequestInterface;
20 use Psr\Http\Server\MiddlewareInterface;
21 use Psr\Http\Server\RequestHandlerInterface;
40 public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
46 return $handler->handle($request);
54 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'compressionLevel'] && extension_loaded(
'zlib')) {
56 @ini_set(
'zlib.output_compression_level', (
string)
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'compressionLevel']);
58 ob_start([GeneralUtility::makeInstance(CompressionUtility::class),
'compressionOutputHandler']);