public function headers($key = null, $fallback = null)
    {
        return $key
            ? $this->request->headers->get($key, $fallback)
            : $this->request->headers;
    }
public function headers($key = null, $fallback = null)
    {
        return $key
            ? $this->request->headers->get($key, $fallback)
            : $this->request->headers;
    }
public function headers ( $ key = null , $ fallback = null ) { return $ key ? $ this -> request -> headers -> get ( $ key , $ fallback ) : $ this -> request -> headers ; }
Get a request header value

@param  string   $key
@param  mixed    $fallback
@return mixed
Get a request header value