InflateStream.php in Zircon Profile 8.0
File
vendor/guzzlehttp/psr7/src/InflateStream.php
View source
<?php
namespace GuzzleHttp\Psr7;
use Psr\Http\Message\StreamInterface;
class InflateStream implements StreamInterface {
use StreamDecoratorTrait;
public function __construct(StreamInterface $stream) {
$stream = new LimitStream($stream, -1, 10);
$resource = StreamWrapper::getResource($stream);
stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ);
$this->stream = new Stream($resource);
}
}
Classes
Name |
Description |
InflateStream |
Uses PHP's zlib.inflate filter to inflate deflate or gzipped content. |