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.
Located in /Http/Response/Stream.php (line 34)
Zend_Http_Response | --Zend_Http_Response_Stream
Response as stream
The name of the file containing the stream
Will be empty if stream is not file-based.
Should we clean up the stream file when this response is closed?
Inherited from Zend_Http_Response
Zend_Http_Response::$body
Zend_Http_Response::$code
Zend_Http_Response::$headers
Zend_Http_Response::$message
Zend_Http_Response::$messages
Zend_Http_Response::$version
Create a new Zend_Http_Response_Stream object from a string
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.
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.
Get the cleanup trigger
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.
Get the response as stream
Get file name associated with the stream
Read stream content and return it as string
Function reads the remainder of the body from the stream and closes the stream.
Set the cleanup trigger
Set the response stream
Set file name associated with the stream
Inherited From Zend_Http_Response
Zend_Http_Response::__construct()
Zend_Http_Response::asString()
Zend_Http_Response::decodeChunkedBody()
Zend_Http_Response::decodeDeflate()
Zend_Http_Response::decodeGzip()
Zend_Http_Response::extractBody()
Zend_Http_Response::extractCode()
Zend_Http_Response::extractHeaders()
Zend_Http_Response::extractMessage()
Zend_Http_Response::extractVersion()
Zend_Http_Response::fromString()
Zend_Http_Response::getBody()
Zend_Http_Response::getHeader()
Zend_Http_Response::getHeaders()
Zend_Http_Response::getHeadersAsString()
Zend_Http_Response::getMessage()
Zend_Http_Response::getRawBody()
Zend_Http_Response::getStatus()
Zend_Http_Response::getVersion()
Zend_Http_Response::isError()
Zend_Http_Response::isRedirect()
Zend_Http_Response::isSuccessful()
Zend_Http_Response::responseCodeAsText()
Zend_Http_Response::__toString()
Documentation generated on Mon, 21 Jun 2010 15:46:55 -0400 by phpDocumentor 1.4.3