__construct()
__construct(\Psr\Http\Message\StreamInterface $stream)
Parameters
\Psr\Http\Message\StreamInterface | $stream |
Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
This stream decorator skips the first 10 bytes of the given stream to remove the gzip header, converts the provided stream to a PHP stream resource, then appends the zlib.inflate filter. The stream is then converted back to a Guzzle stream resource to be used as a Guzzle stream.
__construct(\Psr\Http\Message\StreamInterface $stream)
\Psr\Http\Message\StreamInterface | $stream |
__get(string $name) : \Psr\Http\Message\StreamInterface
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
string | $name | Name of the property (allows "stream" only). |
createStream() : \Psr\Http\Message\StreamInterface
Implement in subclasses to dynamically create streams when requested.
getLengthOfPossibleFilenameHeader(\Psr\Http\Message\StreamInterface $stream, $header) : integer
\Psr\Http\Message\StreamInterface | $stream | |
$header |