Open Journal Systems  3.3.0
GuzzleHttp\Psr7\InflateStream Class Reference
Inheritance diagram for GuzzleHttp\Psr7\InflateStream:
Psr\Http\Message\StreamInterface

Public Member Functions

 __construct (StreamInterface $stream)
 
- Public Member Functions inherited from Psr\Http\Message\StreamInterface
 __toString ()
 
 close ()
 
 detach ()
 
 eof ()
 
 getContents ()
 
 getMetadata ($key=null)
 
 getSize ()
 
 isReadable ()
 
 isSeekable ()
 
 isWritable ()
 
 read ($length)
 
 rewind ()
 
 seek ($offset, $whence=SEEK_SET)
 
 tell ()
 
 write ($string)
 

Detailed Description

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.

http://php.net/manual/en/filters.compression.php

Definition at line 17 of file guzzlehttp/psr7/src/InflateStream.php.

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Psr7\InflateStream::__construct ( StreamInterface  $stream)

The documentation for this class was generated from the following file: