src/Net/Reader.php
public function getHeader( $key = NULL )
	{
		if( !$this->info )
			throw new RuntimeException( "No Request has been sent, yet." );
		if( !$key )
			return $this->headers;
		if( !array_key_exists( $key, $this->headers ) )
			throw new InvalidArgumentException( 'Header Key "'.$key.'" is invalid.' );
		return $this->headers[$key];
	}
public function getHeader( $key = NULL )
	{
		if( !$this->info )
			throw new RuntimeException( "No Request has been sent, yet." );
		if( !$key )
			return $this->headers;
		if( !array_key_exists( $key, $this->headers ) )
			throw new InvalidArgumentException( 'Header Key "'.$key.'" is invalid.' );
		return $this->headers[$key];
	}
public function getHeader ( $ key = NULL ) { if ( ! $ this -> info ) throw new RuntimeException ( "No Request has been sent, yet." ) ; if ( ! $ key ) return $ this -> headers ; if ( ! array_key_exists ( $ key , $ this -> headers ) ) throw new InvalidArgumentException ( 'Header Key "' . $ key . '" is invalid.' ) ; return $ this -> headers [ $ key ] ; }
Returns Headers Array or a specified header from last request.
@access		public
@param		string		$key		Header key
@return		mixed
Returns Headers Array or a specified header from last request .