public function getHeader($header)
	{
		$n = ($header instanceof HttpHeaderInterface) ? strtolower($header->getFieldName()) : strtolower($header);
		
		if(!empty($this->headers[$n]))
		{
			return $this->headers[$n][0][1];
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		$name = ($header instanceof HttpHeaderInterface) ? $header->getFieldName() : $header;
		
		throw new \OutOfBoundsException(sprintf('HTTP header not found: "%s"', $name));
	}
public function getHeader($header)
	{
		$n = ($header instanceof HttpHeaderInterface) ? strtolower($header->getFieldName()) : strtolower($header);
		
		if(!empty($this->headers[$n]))
		{
			return $this->headers[$n][0][1];
		}
		
		if(func_num_args() > 1)
		{
			return func_get_arg(1);
		}
		
		$name = ($header instanceof HttpHeaderInterface) ? $header->getFieldName() : $header;
		
		throw new \OutOfBoundsException(sprintf('HTTP header not found: "%s"', $name));
	}
public function getHeader ( $ header ) { $ n = ( $ header instanceof HttpHeaderInterface ) ? strtolower ( $ header -> getFieldName ( ) ) : strtolower ( $ header ) ; if ( ! empty ( $ this -> headers [ $ n ] ) ) { return $ this -> headers [ $ n ] [ 0 ] [ 1 ] ; } if ( func_num_args ( ) > 1 ) { return func_get_arg ( 1 ) ; } $ name = ( $ header instanceof HttpHeaderInterface ) ? $ header -> getFieldName ( ) : $ header ; throw new \ OutOfBoundsException ( sprintf ( 'HTTP header not found: "%s"' , $ name ) ) ; }
Get the first HTTP header of the given type.

@param mixed $header A header name or an instance of HttpHeaderInterface.
@param mixed $default
@return string

@throws \OutOfBoundsException When no such header is set.
Get the first HTTP header of the given type .