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
Parameter | Description | Version |
---|---|---|
$handler | File or stream handler. |
Example
© «Bitrix24», 2001-2024