Skip to main content

content_digest_header

Function content_digest_header 

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

Computes the conventional Mastodon-compatible single-algorithm Content-Digest: value carrying only a sha-256 entry.

Equivalent to content_digest_header_with(body, &[DigestAlgorithm::Sha256]) but kept as a stable convenience entry point.