/**
* Create a new Zend_Http_Response_Stream object from a string
*
* @param string $response_str
* @param resource $stream
* @return Zend_Http_Response_Stream
*/
public static function fromStream($response_str,
$stream) { $code = self::
extractCode($response_str);
$headers = self::
extractHeaders($response_str);
$version = self::
extractVersion($response_str);
$message = self::
extractMessage($response_str);
return new self($code,
$headers,
$stream,
$version,
$message);
} /**
* 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.
*
* @return string
*/