ManaPHP\Http\Response::sendHeaders PHP Method

sendHeaders() public method

Sends headers to the client
public sendHeaders ( ) : static
return static
    public function sendHeaders()
    {
        if (isset($this->_headers['Status'])) {
            header('HTTP/1.1 ' . $this->_headers['Status']);
        }
        foreach ($this->_headers as $header => $value) {
            if ($value !== null) {
                header($header . ': ' . $value, true);
            } else {
                header($header, true);
            }
        }
        $this->cookies->send();
        return $this;
    }