• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/stream.php
  • Класс: BitrixMainWebHttpStream
  • Вызов: Stream::getContents
public function getContents(): string
{
	if (!$this->isReadable())
	{
		return '';
	}

	$result = stream_get_contents($this->resource);

	if ($result === false)
	{
		throw new RuntimeException('Error reading stream.');
	}

	return $result;
}