Class Horde_Http_Client_Response

Description

Located in /Http_Client/lib/Horde/Http/Client/Response.php (line 17)


	
			
Variable Summary
 integer $code
 array $headers
 float $httpVersion
 string $uri
 stream $_stream
Method Summary
 Horde_Http_Client_Response __construct ( $uri,  $stream, [ $headers = array()])
 string getBody ()
 string getHeader (string $header)
 void getStream ()
 array _parseHeaders (array $headers)
Variables
integer $code (line 35)

HTTP response code

  • access: public
array $headers (line 41)

Response headers

  • access: public
float $httpVersion (line 29)

HTTP protocol version that was used

  • access: public
string $uri (line 23)

Fetched URI

  • access: public
stream $_stream (line 47)

Response body

  • access: protected
Methods
Constructor __construct (line 52)

Constructor

  • access: public
Horde_Http_Client_Response __construct ( $uri,  $stream, [ $headers = array()])
  • $uri
  • $stream
  • $headers
getBody (line 116)

Return the body of the HTTP response.

  • return: HTTP response body.
  • access: public
string getBody ()
getHeader (line 141)

Get the value of a single response header.

  • return: HTTP header value.
  • access: public
string getHeader (string $header)
  • string $header: Header name to get ('Content-Type', 'Content-Length', etc.). This is case sensitive.
getStream (line 129)

Return a stream pointing to the response body that can be used with all standard PHP stream functions.

  • access: public
void getStream ()
_parseHeaders (line 66)

Parse an array of response headers, mindful of line continuations, etc.

  • access: protected
array _parseHeaders (array $headers)
  • array $headers

Documentation generated on Sun, 30 Jan 2011 05:20:57 +0000 by phpDocumentor 1.4.3