public function AbstractEntityBodyDecorator::getContentMd5

Get an MD5 checksum of the stream's contents

Parameters

bool $rawOutput Whether or not to use raw output:

bool $base64Encode Whether or not to base64 encode raw output (only if raw output is true):

Return value

bool|string Returns an MD5 string on success or FALSE on failure

Overrides EntityBodyInterface::getContentMd5

File

drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php, line 104

Class

AbstractEntityBodyDecorator
Abstract decorator used to wrap entity bodies

Namespace

Guzzle\Http

Code

public function getContentMd5($rawOutput = false, $base64Encode = false) {
  $hash = Stream::getHash($this, 'md5', $rawOutput);
  return $hash && $base64Encode ? base64_encode($hash) : $hash;
}