Documentation

setCompress

void public
\Bitrix\Main\Web\HttpClient::setCompress(
 boolean $value
);

Non-static method sets compression options.

Please, be advised not to use compression options with output stream, when content can be significantly large-scale. When Content-Encoding field header is specified, response will be compressed in any case.

Parameters

ParameterDescriptionVersion
$valueWhen true, sends Accept-Encoding: gzip.

Example



© «Bitrix24», 2001-2022
Up