private function sendHeaders() {
        if (!headers_sent()) {
            http_response_code($this->statusCode);
            foreach ($this->headers as $header) {
                header($header);
            }
            foreach ($this->cookies as $cookie) {
                call_user_func_array("setcookie", $cookie);
            }
        }
    }
private function sendHeaders() {
        if (!headers_sent()) {
            http_response_code($this->statusCode);
            foreach ($this->headers as $header) {
                header($header);
            }
            foreach ($this->cookies as $cookie) {
                call_user_func_array("setcookie", $cookie);
            }
        }
    }
private function sendHeaders ( ) { if ( ! headers_sent ( ) ) { http_response_code ( $ this -> statusCode ) ; foreach ( $ this -> headers as $ header ) { header ( $ header ) ; } foreach ( $ this -> cookies as $ cookie ) { call_user_func_array ( "setcookie" , $ cookie ) ; } } }
Sends the response headers
Sends the response headers