fromRequest()
fromRequest(\Guzzle\Http\Message\RequestInterface $request, array|resource $context = array(), array $params = array()) : \Guzzle\Stream\StreamInterface
Create a stream based on a request object
Parameters
\Guzzle\Http\Message\RequestInterface | $request | Base the stream on a request |
array|resource | $context | A stream_context_options resource or array of parameters used to create a stream context. |
array | $params | Optional array of parameters specific to the factory |
Throws
- \Guzzle\Common\Exception\RuntimeException
if the stream cannot be opened or an error occurs
Returns
\Guzzle\Stream\StreamInterface —Returns a stream object