PATH:
home
/
lab2454c
/
westernclear.net
/
vendor
/
guzzlehttp
/
psr7
/
src
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\StreamInterface; /** * 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. * * @link http://tools.ietf.org/html/rfc1950 * @link http://tools.ietf.org/html/rfc1952 * @link http://php.net/manual/en/filters.compression.php */ final class InflateStream implements StreamInterface { use StreamDecoratorTrait; public function __construct(StreamInterface $stream) { $resource = StreamWrapper::getResource($stream); // Specify window=15+32, so zlib will use header detection to both gzip (with header) and zlib data // See http://www.zlib.net/manual.html#Advanced definition of inflateInit2 // "Add 32 to windowBits to enable zlib and gzip decoding with automatic header detection" // Default window size is 15. stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ, ['window' => 15 + 32]); $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); } }
[-] StreamWrapper.php
[edit]
[-] Message.php
[edit]
[-] StreamDecoratorTrait.php
[edit]
[-] FnStream.php
[edit]
[-] DroppingStream.php
[edit]
[+]
..
[-] BufferStream.php
[edit]
[+]
Exception
[-] Query.php
[edit]
[-] MessageTrait.php
[edit]
[-] Request.php
[edit]
[-] UploadedFile.php
[edit]
[-] NoSeekStream.php
[edit]
[-] InflateStream.php
[edit]
[-] Utils.php
[edit]
[-] Header.php
[edit]
[-] Stream.php
[edit]
[-] MimeType.php
[edit]
[-] CachingStream.php
[edit]
[-] Rfc7230.php
[edit]
[-] UriNormalizer.php
[edit]
[-] AppendStream.php
[edit]
[-] Uri.php
[edit]
[-] LimitStream.php
[edit]
[-] PumpStream.php
[edit]
[-] UriResolver.php
[edit]
[-] MultipartStream.php
[edit]
[-] LazyOpenStream.php
[edit]
[-] ServerRequest.php
[edit]
[-] Response.php
[edit]
[-] HttpFactory.php
[edit]