public function getHeader($name, $default = null)
    {
        if ($this->hasHeader($name)) {
            return $this->getHeaderValue($name);
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested header is not configured');
        }

        return $default;
    }
public function getHeader($name, $default = null)
    {
        if ($this->hasHeader($name)) {
            return $this->getHeaderValue($name);
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested header is not configured');
        }

        return $default;
    }
public function getHeader ( $ name , $ default = null ) { if ( $ this -> hasHeader ( $ name ) ) { return $ this -> getHeaderValue ( $ name ) ; } if ( $ default === null ) { throw new \ OutOfBoundsException ( 'Requested header is not configured' ) ; } return $ default ; }
Returns the value of a token header

@param string $name
@param mixed $default

@return mixed

@throws \OutOfBoundsException
Returns the value of a token header