\Guzzle\StreamStreamRequestFactoryInterface

Interface used for creating streams from requests

Summary

Methods
Constants
fromRequest()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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