• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/curl/handler.php
  • Класс: Bitrix\Main\Web\Http\Curl\Handler
  • Вызов: Handler::receiveBody
public function receiveBody($handle, $data)
{
	$body = $this->response->getBody();

	try
	{
		$result = $body->write($data);
	}
	catch (\RuntimeException $e)
	{
		return false;
	}

	if ($this->bodyLengthMax > 0 && $body->getSize() > $this->bodyLengthMax)
	{
		return false;
	}

	return $result;
}