Function hash
Calculate a hash of a stream.
This method reads the entire stream to calculate a rolling hash, based on
PHP's hash_init
functions.
Namespace: GuzzleHttp\Psr7
Deprecated: hash will be removed in guzzlehttp/psr7:2.0. Use Utils::hash instead.
Located at functions.php
Deprecated: hash will be removed in guzzlehttp/psr7:2.0. Use Utils::hash instead.
Located at functions.php
Parameters summary
|
$stream |
Stream to calculate the hash for |
string |
$algo |
Hash algorithm (e.g. md5, crc32, etc) |
boolean |
$rawOutput = false |
Whether or not to use raw output |
Return value summary
string
|
Returns the hash of the stream |
Thrown exceptions summary
RuntimeException
|
on error. |