Requests::decompress( string $data ): string

In this article

Decompress an encoded body

Description

Implements gzip, compress and deflate. Guesses which it is by attempting to decode.

Parameters

$datastringrequired
Compressed data in one of the above formats

Return

string Decompressed string

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.