• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/message.php
  • Класс: Bitrix\Main\Web\Http\Message
  • Вызов: Message::__construct
public function __construct(array $headers = null, StreamInterface $body = null, string $version = null)
{
	$this->headers = new HttpHeaders($headers);

	if ($version !== null)
	{
		$this->protocolVersion = $version;
	}

	$this->body = $body ?? new Stream('php://temp', 'r+');
}