Represents an HTTP response message as PHP stream resource
Set the response stream
Parameters: | resource – |
---|---|
Return type: | Stream |
Get file name associated with the stream
Return type: | string |
---|
Set file name associated with the stream
Parameters: | string – Name to set |
---|---|
Return type: | Stream |
Create a new ZendHttpResponseStream object from a stream
Parameters: |
|
---|---|
Return type: | Stream |
Throws : | ExceptionInvalidArgumentException |
Throws : | ExceptionOutOfRangeException |
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 transferred on wire) use $this->getRawBody() instead.
Return type: | string |
---|
Get the raw response body (as transferred “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.
Return type: | string |
---|