Skip to content

Allow re-casing when serializing for transmission#926

Draft
cceckman-at-fastly wants to merge 1 commit into
WebAssembly:mainfrom
cceckman-at-fastly:cceckman/case
Draft

Allow re-casing when serializing for transmission#926
cceckman-at-fastly wants to merge 1 commit into
WebAssembly:mainfrom
cceckman-at-fastly:cceckman/case

Conversation

@cceckman-at-fastly
Copy link
Copy Markdown

HPACK (RFC 7541) provides a mechanism for compressing HTTP headers; it is used in HTTP/2 and HTTP/3. One of the ways it accomlishes compression is via a static table of common values, listed in Appendix A. Of note, all of the field names in this table are provided in lower case.

The restriction of preserving field name case when serializing for transmission implies that an implementation of wasi-http may not always be able to use the most efficient encoding of the field name (from the static table), even when the semantics are the same.

This commit relaxes the requirement to preserve case when serializing for transmission. This allows an implementation to use the most efficient encoding available when the result is semantically equivalent, e.g. to use HPACK ignoring case differences.

HPACK (RFC 7541) provides a mechanism for compressing HTTP headers; it
is used in HTTP/2 and HTTP/3. One of the ways it accomlishes compression
is via a static table of common values, listed in Appendix A. Of note,
all of the field names in this table are provided in lower case.

The restriction of preserving field name case when serializing for
transmission implies that an implementation of wasi-http may not always
be able to use the most efficient encoding of the field name (from the
static table), even when the semantics are the same.

This commit relaxes the requirement to preserve case _when serializing
for transmission_. This allows an implementation to use the most
efficient encoding available when the result is semantically equivalent,
e.g. to use HPACK ignoring case differences.
@github-actions github-actions Bot added the P-http Proposal: wasi-http label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P-http Proposal: wasi-http

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant