void public
\Bitrix\Main\Web\HttpClient::setHeader(
string $name,
string $value,
boolean $replace = true
);
Sets an HTTP request header field.
Parameters
ParameterDescriptionVersion
$nameName of the header field.
$valueValue of the field.
$replaceReplace existing header field with the same name or add one more.
Examples