public function EntityBody::getContentEncoding

Get the Content-Encoding of the EntityBody

Return value

bool|string

Overrides EntityBodyInterface::getContentEncoding

File

drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php, line 189

Class

EntityBody
Entity body used with an HTTP request or response

Namespace

Guzzle\Http

Code

public function getContentEncoding() {
  return strtr($this->contentEncoding, array(
    'zlib.deflate' => 'gzip',
    'bzip2.compress' => 'compress',
  )) ?: false;
}