Skip to content

feat(http/unstable): add RFC 9530 digest fields#7238

Open
tomas-zijdemans wants to merge 14 commits into
denoland:mainfrom
tomas-zijdemans:digest-fields
Open

feat(http/unstable): add RFC 9530 digest fields#7238
tomas-zijdemans wants to merge 14 commits into
denoland:mainfrom
tomas-zijdemans:digest-fields

Conversation

@tomas-zijdemans

Copy link
Copy Markdown
Contributor

Adds an unstable @std/http/unstable-digest-fields module for creating and verifying RFC 9530 Content-Digest and Repr-Digest field values.

RFC 9530, an IETF standards-track RFC from Feb 2024, replaces the legacy RFC 3230 Digest field with Structured Fields based digest headers for HTTP content and representation integrity. These helpers support creating digest values from strings, bytes, or streams, and verifying Request / Response bodies without consuming the original body.

This is also useful with HTTP Message Signatures (RFC 9421), where a signed digest field can bind the signature to the message body. The implementation is small and browser-compatible, reusing existing @std primitives: timing-safe-equal, unstable-structured-fields, and to-bytes.


Note

Recreates #7037, which was closed automatically when I accidentally deleted the head fork. The branch is identical to the original PR head.

@github-actions github-actions Bot added the http label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants