• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/httpclient.php
  • Класс: BitrixMainWebHttpClient
  • Вызов: HttpClient::setHeader
public function setHeader($name, $value, $replace = true)
{
	if ($replace || !$this->headers->has($name))
	{
		$this->headers->set($name, $value);
	}
	return $this;
}