src/Net/HTTP/Header/Parser.php
static public function parse( $string )
	{
		$section	= new Net_HTTP_Header_Section();
		$lines		= explode( PHP_EOL, trim( $string ) );
		foreach( $lines as $line )
		{
			if( preg_match( '@^HTTP/@', $line ) )
				continue;
			if( strlen( trim( $line ) ) )
				$section->addField( Net_HTTP_Header_Field_Parser::parse( $line ) );
		}
		return $section;
	}
static public function parse( $string )
	{
		$section	= new Net_HTTP_Header_Section();
		$lines		= explode( PHP_EOL, trim( $string ) );
		foreach( $lines as $line )
		{
			if( preg_match( '@^HTTP/@', $line ) )
				continue;
			if( strlen( trim( $line ) ) )
				$section->addField( Net_HTTP_Header_Field_Parser::parse( $line ) );
		}
		return $section;
	}
static public function parse ( $ string ) { $ section = new Net_HTTP_Header_Section ( ) ; $ lines = explode ( PHP_EOL , trim ( $ string ) ) ; foreach ( $ lines as $ line ) { if ( preg_match ( '@^HTTP/@' , $ line ) ) continue ; if ( strlen ( trim ( $ line ) ) ) $ section -> addField ( Net_HTTP_Header_Field_Parser :: parse ( $ line ) ) ; } return $ section ; }
Parses block of HTTP headers and returns list of HTTP header field objects.
@static
@access		public
@param		$string			HTTP headers encoded as string
@return		Net_HTTP_Header_Section
Parses block of HTTP headers and returns list of HTTP header field objects .