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

	try
	{
		$this->rewind();
		return $this->getContents();
	}
	catch (RuntimeException)
	{
		return '';
	}
}