D7 API documentation
What's New
Modules
Main module in old core
Legacy mode
PSR-18: HTTP Client
Asynchronous queries
CURL
Proxy
Logging
HttpClient constructor
HttpClient destuctor
disableSslVerification
download
get
getCharset
getContentType
getCookies
getEffectiveUrl
getError
getHeaders
getResult
getStatus
head
post
query
setAuthorization
setCharset
setCompress
setCookies
setHeader
setOutputStream
setProxy
setRedirect
setStreamTimeout
setTimeout
setVersion
waitResponse
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
Up