Want-Content-Digest

The Want-Content-Digest request or response header states the wish for a Content-Digest header. It is the Content- analogue of Want-Repr-Digest.

Header type Representation header
Forbidden header name no

Syntax

Want-Content-Digest describes an RFC8941 dictionary with its keys being hashing algorithms and its values being the integers 0 (meaning "not acceptable") or 1 to 9 (conveying ascending, relative, weighted preference).

Note: In contrast to earlier drafts of the specifications, the weighting is not declared via q-values.

Directives

For permissible digest algorithms see Repr-Digest.

Examples

http
Want-Content-Digest: md5=1, sha-512=0, sha-256=4
Want-Content-Digest: md5=0

Specifications

Specification
Digest Fields

Browser compatibility

This header has no specification-defined browser integration ("browser compatibility" does not apply). Developers can set and get HTTP headers using fetch() in order to provide application-specific implementation behavior.

See also