HeaderParser Class Reference
[HTTP related utilities]

List of all members.

Public Member Functions

 parse ($data)
 
Parameters:
raw header data

 doLine ($line)
 getHeaders ()
 
Returns:
associative array of headers (name => value)

 hasHeader ($name)
 getHeader ($name)

Static Public Member Functions

static create ()

Private Attributes

 $headers = array()
 $currentHeader = null


Detailed Description

Definition at line 16 of file HeaderParser.class.php.


Member Function Documentation

static HeaderParser::create (  )  [static]

Definition at line 21 of file HeaderParser.class.php.

Referenced by CurlHttpResponse::__construct().

HeaderParser::parse ( data  ) 

Parameters:
raw header data

Returns:
associative array of headers (name => value)

Definition at line 30 of file HeaderParser.class.php.

References doLine().

Here is the call graph for this function:

HeaderParser::doLine ( line  ) 

Definition at line 41 of file HeaderParser.class.php.

Referenced by parse().

HeaderParser::getHeaders (  ) 

Returns:
associative array of headers (name => value)

Definition at line 80 of file HeaderParser.class.php.

HeaderParser::hasHeader ( name  ) 

Definition at line 85 of file HeaderParser.class.php.

HeaderParser::getHeader ( name  ) 

Definition at line 90 of file HeaderParser.class.php.


Member Data Documentation

HeaderParser::$headers = array() [private]

Definition at line 18 of file HeaderParser.class.php.

HeaderParser::$currentHeader = null [private]

Definition at line 19 of file HeaderParser.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:33 2007 for onPHP by  doxygen 1.5.4