public function EntityBodyInterface::compress

If the stream is readable, compress the data in the stream using deflate compression. The uncompressed stream is then closed, and the compressed stream then becomes the wrapped stream.

Parameters

string $filter Compression filter:

Return value

bool Returns TRUE on success or FALSE on failure

2 methods override EntityBodyInterface::compress()
AbstractEntityBodyDecorator::compress in drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php
@codeCoverageIgnore
EntityBody::compress in drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php
If the stream is readable, compress the data in the stream using deflate compression. The uncompressed stream is then closed, and the compressed stream then becomes the wrapped stream.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBodyInterface.php, line 31

Class

EntityBodyInterface
Entity body used with an HTTP request or response

Namespace

Guzzle\Http

Code

public function compress($filter = 'zlib.deflate');