Skip to main content

sha256_digest_header

Function sha256_digest_header 

Source
pub fn sha256_digest_header(body: &[u8]) -> String
Expand description

Computes the legacy Digest: header value for body.

Returns a string of the form SHA-256=<base64>, ready to insert as an HTTP header value.