public function Response::getContentEncoding

Get the Content-Encoding HTTP header

Return value

string|null Returns the type of encoding used on the data. One of compress, deflate, gzip, identity.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 452

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getContentEncoding() {
  return $this
    ->getHeader('Content-Encoding', true);
}