Class PsrStream
- Aws\Handler\GuzzleV5\PsrStream implements Psr\Http\Message\StreamInterface uses GuzzleHttp\Stream\StreamDecoratorTrait (not available)
- Namespace: Aws\Handler\GuzzleV5
- Codecoverageignore
- Located at Handler/GuzzleV5/PsrStream.php
Adapts a Guzzle 5 Stream to a PSR-7 Stream.
Methods Summary
- __construct ( GuzzleHttp\Stream\StreamInterface $stream )
-
rewind ( )
Seek to the beginning of the stream.
-
getContents ( )
Returns the remaining contents in a string
Methods inherited from Psr\Http\Message\StreamInterface
Methods Details
__construct ( GuzzleHttp\Stream\StreamInterface $stream )
rewind ( )
Seek to the beginning of the stream.
If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).
Exceptions
RuntimeException on failure. |
See
Link
Implementation of
string getContents ( )
Returns the remaining contents in a string
Returns
string |
Exceptions
RuntimeException if unable to read or an error occurs while reading. |