$context
$context : resource
Converts Guzzle streams into PHP stream resources.
$stream : \Psr\Http\Message\StreamInterface
getResource(\Psr\Http\Message\StreamInterface $stream) : resource
Returns a resource representing the stream.
\Psr\Http\Message\StreamInterface | $stream | The stream to get a resource for |
if stream is not readable or writable
createStreamContext(\Psr\Http\Message\StreamInterface $stream) : resource
Creates a stream context that can be used to open a stream as a php stream resource.
\Psr\Http\Message\StreamInterface | $stream |