public function InflateStream::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/InflateStream.php \GuzzleHttp\Psr7\InflateStream::__construct()
Parameters
StreamInterface $stream Stream to decorate:
Overrides StreamDecoratorTrait::__construct
File
- vendor/
guzzlehttp/ psr7/ src/ InflateStream.php, line 21
Class
- InflateStream
- Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
Namespace
GuzzleHttp\Psr7Code
public function __construct(StreamInterface $stream) {
// Skip the first 10 bytes
$stream = new LimitStream($stream, -1, 10);
$resource = StreamWrapper::getResource($stream);
stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ);
$this->stream = new Stream($resource);
}