• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/httpclient.php
  • Класс: BitrixMainWebHttpClient
  • Вызов: HttpClient::getResult
public function getResult()
{
	$result = '';
	if ($this->response)
	{
		$body = $this->response->getBody();

		if ($this->outputStream === null)
		{
			$result = (string)$body;
		}
		else
		{
			$body->copyTo($this->outputStream);
		}
	}
	return $result;
}