Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content.
This stream decorator 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.
- see https://datatracker.ietf.org/doc/html/rfc1950
- see https://datatracker.ietf.org/doc/html/rfc1952
- see https://www.php.net/manual/en/filters.compression.php
CloneableFinalInstantiable
- Implements
Psr\Http\Message\StreamInterface Stringable - Traits
| Methods |
| public __call(string $method, array $args) Allow decorators to implement custom methods
|
| public __construct(Psr\Http\Message\StreamInterface $stream) |
| public __get(string $name) Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
|
| public __toString() : string |
| public close() : void |
| public detach() |
| public eof() : bool |
| public getContents() : string |
public getMetadata( $key = NULL)
|
| public getSize() : ?int |
| public isReadable() : bool |
| public isSeekable() : bool |
| public isWritable() : bool |
| public read( $length) : string |
| public rewind() : void |
| public seek( $offset, $whence = 0GuzzleHttp\Psr7\SEEK_SET) : void |
| public tell() : int |
| public write( $string) : int |
| Methods |
| protected createStream() : Psr\Http\Message\StreamInterface Implement in subclasses to dynamically create streams when requested.
|
| Properties |
private $stream = NULL
|