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

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

Sends content type header with optional charset.
protected sendContentTypeHeader ( )
    protected function sendContentTypeHeader()
    {
        $contentType = $this->_contentType === null ? self::DEFAULT_CONTENTTYPE : $this->_contentType;
        $charset = $this->getCharset();
        if ($charset === false) {
            $this->appendHeader('Content-Type: ' . $contentType);
            return;
        }
        if ($charset === '' && ($globalization = $this->getApplication()->getGlobalization(false)) !== null) {
            $charset = $globalization->getCharset();
        }
        if ($charset === '') {
            $charset = self::DEFAULT_CHARSET;
        }
        $this->appendHeader('Content-Type: ' . $contentType . ';charset=' . $charset);
        $this->_contentTypeHeaderSent = true;
    }