setHeader
void public \Bitrix\Main\Web\HttpClient::setHeader( string $name, string $value, boolean $replace = true );
Non-static method sets HTTP query header field.
Parameters
Parameter | Description | Version |
---|---|---|
$name | Header field name. | |
$value | Field value. | |
$replace | Replace existing header with current name or add another one. |
Example
© «Bitrix24», 2001-2024