private function buildHttpResponse()
    {
        $status_text = static::$header[$this->code] ?? 'Unkdown';

        @header('HTTP/1.1 '. $this->code .' '. $status_text, $this->override, $this->code);

        foreach ($this->getHeaders() as $key => $header) {
            header(sprintf('%s: %s', $key, $header));
        }

        if ($this->download) {
            readfile($this->download_filename);

            die;
        }

        return $this->getContent();
    }
private function buildHttpResponse()
    {
        $status_text = static::$header[$this->code] ?? 'Unkdown';

        @header('HTTP/1.1 '. $this->code .' '. $status_text, $this->override, $this->code);

        foreach ($this->getHeaders() as $key => $header) {
            header(sprintf('%s: %s', $key, $header));
        }

        if ($this->download) {
            readfile($this->download_filename);

            die;
        }

        return $this->getContent();
    }
private function buildHttpResponse ( ) { $ status_text = static :: $ header [ $ this -> code ] ?? 'Unkdown' ; @ header ( 'HTTP/1.1 ' . $ this -> code . ' ' . $ status_text , $ this -> override , $ this -> code ) ; foreach ( $ this -> getHeaders ( ) as $ key => $ header ) { header ( sprintf ( '%s: %s' , $ key , $ header ) ) ; } if ( $ this -> download ) { readfile ( $ this -> download_filename ) ; die ; } return $ this -> getContent ( ) ; }
Build HTTP Response

@return string
Build HTTP Response