Documentation

setHeader

void public
\Bitrix\Main\Web\HttpClient::setHeader(
 string $name,
 string $value,
 boolean $replace = true
);

Non-static method sets HTTP query header field.

Parameters

ParameterDescriptionVersion
$nameHeader field name.
$valueField value.
$replaceReplace existing header with current name or add another one.

Example



© «Bitrix24», 2001-2024