spunQ_HttpBrowserResponse Class Reference

The response to a http request done through a spunQ_HttpBrowserRequest. More...

List of all members.

Public Member Functions

 getHeaders ()
 Gets the heaeders that were returned.
 getBody ()
 Gets the body that was returned.
 getStatusCode ()
 Provides the HTTP status code of this response.

Static Public Member Functions

static createFromHttpResponse ($httpResponse, $statusCode)
 Creates an object from the http response that was received.

Private Attributes

 $headers
 The heaeders that were returned.
 $body
 The body that was returned.
 $statusCode
 The status code that was returned.


Detailed Description

The response to a http request done through a spunQ_HttpBrowserRequest.

Definition at line 6 of file HttpBrowserResponse.class.php.


Member Function Documentation

static spunQ_HttpBrowserResponse::createFromHttpResponse ( httpResponse,
statusCode 
) [static]

Creates an object from the http response that was received.

Parameters:
$httpResponse The string containing the whole Http document that was received.
Returns:
spunQ_HttpBrowserResponse

Definition at line 32 of file HttpBrowserResponse.class.php.

spunQ_HttpBrowserResponse::getBody (  ) 

Gets the body that was returned.

Returns:
string

Definition at line 58 of file HttpBrowserResponse.class.php.

spunQ_HttpBrowserResponse::getHeaders (  ) 

Gets the heaeders that were returned.

Returns:
array<string>

Definition at line 50 of file HttpBrowserResponse.class.php.

spunQ_HttpBrowserResponse::getStatusCode (  ) 

Provides the HTTP status code of this response.

Returns:
integer

Definition at line 66 of file HttpBrowserResponse.class.php.


Member Data Documentation

spunQ_HttpBrowserResponse::$body [private]

The body that was returned.

Type:
string

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

spunQ_HttpBrowserResponse::$headers [private]

The heaeders that were returned.

Type:
array<string>

Definition at line 12 of file HttpBrowserResponse.class.php.

spunQ_HttpBrowserResponse::$statusCode [private]

The status code that was returned.

Type:
integer

Definition at line 24 of file HttpBrowserResponse.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:40 2011 for spunQ3 by  doxygen 1.5.9