Documentation

setOutputStream

void public
\Bitrix\Main\Web\HttpClient::setOutputStream(
 resource $handler
);

Non-static method sets response output into stream instead of string result. Used for large-scale responses.

Attention! Stream must have enabled read/write feature to support compressed response. In this case, string response is empty.

Parameters

ParameterDescriptionVersion
$handlerFile or stream handler.

Example



© «Bitrix24», 2001-2024