public function sendHeaders()
    {
        if (headers_sent() === true) {
            return;
        }
        foreach ($this->renderHeaders() as $header) {
            header($header, false);
        }
        foreach ($this->headers->getCookies() as $cookie) {
            header('Set-Cookie: ' . $cookie, false);
        }
    }
public function sendHeaders()
    {
        if (headers_sent() === true) {
            return;
        }
        foreach ($this->renderHeaders() as $header) {
            header($header, false);
        }
        foreach ($this->headers->getCookies() as $cookie) {
            header('Set-Cookie: ' . $cookie, false);
        }
    }
public function sendHeaders ( ) { if ( headers_sent ( ) === true ) { return ; } foreach ( $ this -> renderHeaders ( ) as $ header ) { header ( $ header , false ) ; } foreach ( $ this -> headers -> getCookies ( ) as $ cookie ) { header ( 'Set-Cookie: ' . $ cookie , false ) ; } }
Sends the HTTP headers.

If headers have been sent previously, this method fails silently.

@return void
@codeCoverageIgnore
@deprecated Since Flow 5.1, without replacement
TODO: Make private after deprecation period
Sends the HTTP headers .