Class SimpleHttpHeaders

Description

Collection of header lines in the response.

Located in /http.php (line 295)


	
			
Variable Summary
Method Summary
 SimpleHttpHeaders SimpleHttpHeaders (string $headers)
 string getAuthentication ()
 integer getHttpVersion ()
 string getLocation ()
 string getMimeType ()
 string getRaw ()
 string getRealm ()
 integer getResponseCode ()
 boolean isChallenge ()
 boolean isRedirect ()
 void writeCookiesToJar ( &$jar, SimpleUrl $url, SimpleCookieJar $jar)
 void _parseHeaderLine (string $header_line)
Variables
mixed $_authentication (line 302)
mixed $_cookies (line 301)
mixed $_http_version (line 298)
mixed $_location (line 300)
mixed $_mime_type (line 299)
mixed $_raw_headers (line 296)
mixed $_realm (line 303)
mixed $_response_code (line 297)
Methods
Constructor SimpleHttpHeaders (line 310)

Parses the incoming header block.

  • access: public
SimpleHttpHeaders SimpleHttpHeaders (string $headers)
  • string $headers: Header block.
getAuthentication (line 397)

Accessor for authentication type.

  • return: Type.
  • access: public
string getAuthentication ()
getHttpVersion (line 329)

Accessor for parsed HTTP protocol version.

  • return: HTTP error code.
  • access: public
integer getHttpVersion ()
getLocation (line 357)

Returns the redirected URL or false if no redirection.

  • return: URL or false for none.
  • access: public
string getLocation ()
getMimeType (line 388)

Accessor for MIME type header information.

  • return: MIME type.
  • access: public
string getMimeType ()
getRaw (line 338)

Accessor for raw header block.

  • return: All headers as raw string.
  • access: public
string getRaw ()
getRealm (line 406)

Accessor for security realm.

  • return: Realm.
  • access: public
string getRealm ()
getResponseCode (line 347)

Accessor for parsed HTTP error code.

  • return: HTTP error code.
  • access: public
integer getResponseCode ()
isChallenge (line 377)

Test to see if the response is an authentication challenge.

  • return: True if challenge.
  • access: public
boolean isChallenge ()
isRedirect (line 366)

Test to see if the response is a valid redirect.

  • return: True if valid redirect.
  • access: public
boolean isRedirect ()
writeCookiesToJar (line 416)

Writes new cookies to the cookie jar.

  • access: public
void writeCookiesToJar ( &$jar, SimpleUrl $url, SimpleCookieJar $jar)
_parseHeaderLine (line 433)

Called on each header line to accumulate the held data within the class.

  • access: protected
void _parseHeaderLine (string $header_line)
  • string $header_line: One line of header.

Documentation generated on Sun, 04 May 2008 09:21:41 -0500 by phpDocumentor 1.3.0