Interface Guzzle\Stream\StreamRequestFactoryInterface

Implemented byGuzzle\Stream\PhpStreamRequestFactory

Interface used for creating streams from requests

Public Methods

Hide inherited methods

MethodDescriptionDefined By
fromRequest() Create a stream based on a request object Guzzle\Stream\StreamRequestFactoryInterface

Method Details

fromRequest() public abstract method

Create a stream based on a request object

public abstract Guzzle\Stream\StreamInterface fromRequest ( Guzzle\Http\Message\RequestInterface $request, $context = [], array $params = [] )
$request Guzzle\Http\Message\RequestInterface

Base the stream on a request

$context array|resource

A stream_context_options resource or array of parameters used to create a

                             stream context.
$params array

Optional array of parameters specific to the factory

return Guzzle\Stream\StreamInterface

Returns a stream object

throws Guzzle\Common\Exception\RuntimeException

if the stream cannot be opened or an error occurs