Prado\Web\THttpResponse::sendHttpHeader PHP Метод

sendHttpHeader() защищенный Метод

Send the HTTP header with the status code (defaults to 200) and status reason (defaults to OK)
protected sendHttpHeader ( )
    protected function sendHttpHeader()
    {
        $protocol = $this->getRequest()->getHttpProtocolVersion();
        if ($this->getRequest()->getHttpProtocolVersion() === null) {
            $protocol = 'HTTP/1.1';
        }
        $phpSapiName = substr(php_sapi_name(), 0, 3);
        $cgi = $phpSapiName == 'cgi' || $phpSapiName == 'fpm';
        header(($cgi ? 'Status:' : $protocol) . ' ' . $this->_status . ' ' . $this->_reason, true, TPropertyValue::ensureInteger($this->_status));
        $this->_httpHeaderSent = true;
    }