• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/lib/profile/requesthandler.php
  • Класс: BitrixDavProfileRequestHandler
  • Вызов: RequestHandler::process
public function process()
{
	$response = new HttpResponse();
	if (!$this->getHandler() instanceof Base)
	{
		$response->setStatus(404);
		$response->addHeader('Content-Type', 'application/json');
		$body = Json::encode(['error_messages' => [$this->getNotAvailableActionErrorMessage()]]);
	}
	else
	{
		foreach ($this->getHandler()->getHeaders() as $name => $value)
		{
			$response->addHeader($name, $value);
		}

		if ($this->getHandler()->getStatus())
		{
			$response->setStatus($this->getHandler()->getStatus());
		}

		$body = $this->getHandler()->getBody();
	}

	$response->flush($body);
	return true;
}