digest
¤
generate_content_digest
¤
generate_content_digest(body: Union[str, bytes]) -> str
Returns a SHA-512 Content-Digest header, according to https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-digest-headers-13
verify_content_digest
¤
verify_content_digest(
digest_header: Union[str, bytes],
body: Union[str, bytes],
)
Verify a SHA-256 or SHA-512 Content-Digest header matches a request body.