• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/classes/general/rest.php
  • Класс: CRestServer
  • Вызов: CRestServer::__construct
public function __construct($params, $toLowerMethod = true)
{
	$this->class = $params['CLASS'];
	$this->method = $toLowerMethod ? ToLower($params['METHOD']) : $params['METHOD'];
	$this->query = $params['QUERY'];

	$this->transport = $params['TRANSPORT'] ?? null;

	$this->securityClientState = $params['STATE'] ?? null;

	if(!$this->transport)
	{
		$this->transport = 'json';
	}

	if(self::$instance === null)
	{
		self::$instance = $this;
	}
}