public static function EntityBody::calculateMd5

Calculate the MD5 hash of an entity body

@codeCoverageIgnore

Parameters

EntityBodyInterface $body Entity body to calculate the hash for:

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

Deprecated

This will be deprecated soon

File

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

Class

EntityBody
Entity body used with an HTTP request or response

Namespace

Guzzle\Http

Code

public static function calculateMd5(EntityBodyInterface $body, $rawOutput = false, $base64Encode = false) {
  return $body
    ->getContentMd5($rawOutput, $base64Encode);
}