public function sendHeaders($cookies_also = true, $override = false)
    {
        if (headers_sent() && !$override) {
            return $this;
        }

        // Send our HTTP status line
        header($this->httpStatusLine());

        // Iterate through our Headers data collection and send each header
        foreach ($this->headers as $key => $value) {
            header($key .': '. $value, false);
        }

        if ($cookies_also) {
            $this->sendCookies($override);
        }

        return $this;
    }
public function sendHeaders($cookies_also = true, $override = false)
    {
        if (headers_sent() && !$override) {
            return $this;
        }

        // Send our HTTP status line
        header($this->httpStatusLine());

        // Iterate through our Headers data collection and send each header
        foreach ($this->headers as $key => $value) {
            header($key .': '. $value, false);
        }

        if ($cookies_also) {
            $this->sendCookies($override);
        }

        return $this;
    }
public function sendHeaders ( $ cookies_also = true , $ override = false ) { if ( headers_sent ( ) && ! $ override ) { return $ this ; } // Send our HTTP status line header ( $ this -> httpStatusLine ( ) ) ; // Iterate through our Headers data collection and send each header foreach ( $ this -> headers as $ key => $ value ) { header ( $ key . ': ' . $ value , false ) ; } if ( $ cookies_also ) { $ this -> sendCookies ( $ override ) ; } return $ this ; }
Send our HTTP headers

@param boolean $cookies_also Whether or not to also send the cookies after sending the normal headers
@param boolean $override     Whether or not to override the check if headers have already been sent
@return AbstractResponse
Send our HTTP headers