Open Journal Systems  3.3.0
Guzzle\Stream\StreamRequestFactoryInterface Interface Reference
Inheritance diagram for Guzzle\Stream\StreamRequestFactoryInterface:
Guzzle\Stream\PhpStreamRequestFactory

Public Member Functions

 fromRequest (RequestInterface $request, $context=array(), array $params=array())
 

Detailed Description

Interface used for creating streams from requests

Definition at line 10 of file StreamRequestFactoryInterface.php.

Member Function Documentation

◆ fromRequest()

Guzzle\Stream\StreamRequestFactoryInterface::fromRequest ( RequestInterface  $request,
  $context = array(),
array  $params = array() 
)

Create a stream based on a request object

Parameters
RequestInterface$requestBase the stream on a request
array | resource$contextA stream_context_options resource or array of parameters used to create a stream context.
array$paramsOptional array of parameters specific to the factory
Returns
StreamInterface Returns a stream object
Exceptions

Implemented in Guzzle\Stream\PhpStreamRequestFactory.


The documentation for this interface was generated from the following file: