96 $this->_cleanup = $cleanup;
180 if($this->stream !=
null) {
183 return parent::getBody();
215 if(isset(
$headers[
'content-length'])) {
216 $this->body = stream_get_contents($this->stream,
$headers[
'content-length']);
218 $this->body = stream_get_contents($this->stream);
220 fclose($this->stream);
221 $this->stream =
null;
227 fclose($this->stream);
228 $this->stream =
null;
230 if($this->_cleanup) {
231 @
unlink($this->stream_name);
static extractHeaders($response_str)
static fromStream($response_str, $stream)
static extractVersion($response_str)
setCleanup($cleanup=true)
__construct($code, $headers, $body=null, $version='1.1', $message=null)
setStreamName($stream_name)
static extractMessage($response_str)
static extractCode($response_str)