Copied!

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.

Cloneable Instantiable
Methods
public __call ( $method , array $args )
 

Allow decorators to implement custom methods

  • return mixed
public __construct ( Psr\Http\Message\StreamInterface $stream )
public __get ( $name )
 

Magic method used to create a new stream if streams are not added in
the constructor of a decorator (e.g., LazyOpenStream).

  • return StreamInterface
public __toString () : string
public close ()
public detach ()
public eof ()
public getContents ()
public getMetadata ( $key = NULL )
public getSize ()
public isReadable ()
public isSeekable ()
public isWritable ()
public read ( $length )
public rewind ()
public seek ( $offset , $whence = 0 )
public tell ()
public write ( $string )
Methods
protected createStream ()
 

Implement in subclasses to dynamically create streams when requested.

  • return StreamInterface
  • throws BadMethodCallException
Methods
private getLengthOfPossibleFilenameHeader ( Psr\Http\Message\StreamInterface $stream , $header )
 
  • return int
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only