Zend_Http_ResponseZend_Http_Response represents an HTTP 1.0 / 1.1 response message. It includes easy access to all the response's different elemts, as well as some convenience methods for parsing and validating HTTP responses.
Located in /Http/Response.php (line 34)
| Class | Description | 
|---|---|
						 
						Zend_Http_Response_Stream
					 | 
					Zend_Http_Response represents an HTTP 1.0 / 1.1 response message. It includes easy access to all the response's different elemts, as well as some convenience methods for parsing and validating HTTP responses. | 
											Zend_Http_Response
										__construct
											(int $code, array $headers, [string $body = null], [string $version = '1.1'], [string $message = null])
									
		
			static array
			$messages
			 = array(List of all known HTTP response codes - used by responseCodeAsText() to translate numeric codes to messages.
		
			string
			$body
						(line 130)
		
	The HTTP response body
		
			int
			$code
						(line 108)
		
	The HTTP response code
		
			array
			$headers
			 = array()			(line 123)
		
	The HTTP response headers array
		
			string
			$message
						(line 116)
		
	The HTTP response code as string (e.g. 'Not Found' for 404 or 'Internal Server Error' for 500)
		
			string
			$version
						(line 101)
		
	The HTTP version (1.0, 1.1)
		static decodeChunkedBody (line 560)
	Decode a "chunked" transfer-encoded body and return the decoded text
		static decodeDeflate (line 620)
	Decode a zlib deflated message (when Content-encoding = deflate)
Currently requires PHP with zlib support
		static decodeGzip (line 600)
	Decode a gzip encoded message (when Content-encoding = gzip)
Currently requires PHP with zlib support
		static extractBody (line 545)
	Extract the body from a response string
		static extractCode (line 442)
	Extract the response code from a response string
		static extractHeaders (line 493)
	Extract the headers from a response string
		static extractMessage (line 459)
	Extract the HTTP message from a response
		static extractVersion (line 476)
	Extract the HTTP version from a response
		static fromString (line 654)
	Create a new Zend_Http_Response object from a string
		static responseCodeAsText (line 422)
	A convenience function that returns a text representation of HTTP response codes. Returns 'Unknown' for unknown codes.
Returns array of all codes, if $code is not specified.
Conforms to HTTP/1.1 as defined in RFC 2616 (except for 'Unknown') See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10 for reference
		Constructor __construct (line 151)
	HTTP response constructor
In most cases, you would use Zend_Http_Response::fromString to parse an HTTP response string and create a new Zend_Http_Response object.
NOTE: The constructor no longer accepts nulls or empty values for the code and headers and will throw an exception if the passed values do not form a valid HTTP responses.
If no message is passed, the message will be guessed according to the response code.
		asString (line 395)
	Get the entire response as string
		getBody (line 251)
	Get the response body as string
This method returns the body of the HTTP response (the content), as it should be in it's readable version - that is, after decoding it (if it was decoded), deflating it (if it was gzip compressed), etc.
If you want to get the raw body (as transfered on wire) use $this->getRawBody() instead.
		getHeader (line 350)
	Get a specific header as string, or null if it is not set
		getHeaders (line 339)
	Get the response headers
		getHeadersAsString (line 365)
	Get all headers as string
		getMessage (line 329)
	Return a message describing the HTTP response code (Eg. "OK", "Not Found", "Moved Permanently")
		getRawBody (line 298)
	Get the raw response body (as transfered "on wire") as string
If the body is encoded (with Transfer-Encoding, not content-encoding - IE "chunked" body), gzip compressed, etc. it will not be decoded.
		getStatus (line 318)
	Get the HTTP response status code
		getVersion (line 308)
	Get the HTTP version of the response
		isError (line 199)
	Check whether the response is an error
		isRedirect (line 229)
	Check whether the response is a redirection
		isSuccessful (line 214)
	Check whether the response in successful
		__toString (line 405)
	Implements magic __toString()
Documentation generated on Mon, 21 Jun 2010 15:42:21 -0400 by phpDocumentor 1.4.3