Class SimpleHttpHeaders

Description

Collection of header lines in the response.

Located in /libraries/pear/simpletest/http.php (line 548)


	
			
Variable Summary
Method Summary
 SimpleHttpHeaders SimpleHttpHeaders (string $headers)
 string getAuthentication ()
 integer getHttpVersion ()
 string getLocation ()
 string getMimeType ()
 array getNewCookies ()
 string getRaw ()
 string getRealm ()
 integer getResponseCode ()
 boolean isChallenge ()
 boolean isRedirect ()
 SimpleCookie _parseCookie (string $cookie_line)
 void _parseHeaderLine (string $header_line)
Variables
mixed $_authentication (line 555)
mixed $_cookies (line 554)
mixed $_http_version (line 551)
mixed $_location (line 553)
mixed $_mime_type (line 552)
mixed $_raw_headers (line 549)
mixed $_realm (line 556)
mixed $_response_code (line 550)
Methods
Constructor SimpleHttpHeaders (line 563)

Parses the incoming header block.

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

Accessor for authentication type.

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

Accessor for parsed HTTP protocol version.

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

Returns the redirected URL or false if no redirection.

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

Accessor for MIME type header information.

  • return: MIME type.
  • access: public
string getMimeType ()
getNewCookies (line 668)

Accessor for any new cookies.

  • return: List of new cookies.
  • access: public
array getNewCookies ()
getRaw (line 591)

Accessor for raw header block.

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

Accessor for security realm.

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

Accessor for parsed HTTP error code.

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

Test to see if the response is an authentication challenge.

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

Test to see if the response is a valid redirect.

  • return: True if valid redirect.
  • access: public
boolean isRedirect ()
_parseCookie (line 704)

Parse the Set-cookie content.

  • return: New cookie object.
  • access: private
SimpleCookie _parseCookie (string $cookie_line)
  • string $cookie_line: Text after "Set-cookie:"
_parseHeaderLine (line 678)

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 Thu, 20 Jan 2005 17:10:02 +0000 by phpDocumentor 1.3.0RC3