public function getRequestHeader($header, $default = false)
    {
        if ($this->hasRequestHeader($header)) {
            $headers = $this->getAllRequestHeaders();
            return $headers[$header];
        } else {
            return $default;
        }
    }
public function getRequestHeader($header, $default = false)
    {
        if ($this->hasRequestHeader($header)) {
            $headers = $this->getAllRequestHeaders();
            return $headers[$header];
        } else {
            return $default;
        }
    }
public function getRequestHeader ( $ header , $ default = false ) { if ( $ this -> hasRequestHeader ( $ header ) ) { $ headers = $ this -> getAllRequestHeaders ( ) ; return $ headers [ $ header ] ; } else { return $ default ; } }
Returns request header if present

@param string $header
@param boolean $default Default value to be returned in case requested one doesn't exist
@return string
Returns request header if present