Skip to content

remove header field validation to comply with RFC.#1

Merged
vshakitskiy merged 5 commits into
vshakitskiy:mistressfrom
Alge:remove-header-name-validation
Mar 23, 2026
Merged

remove header field validation to comply with RFC.#1
vshakitskiy merged 5 commits into
vshakitskiy:mistressfrom
Alge:remove-header-name-validation

Conversation

@Alge
Copy link
Copy Markdown
Contributor

@Alge Alge commented Mar 22, 2026

Section 1.3 in the RFC:

"Both the name and value are treated as opaque sequences of octets."

This makes it much easier for HTTP/2 implementations to properly handle improper header names as stream errors separate from more fatal errors due to HPACK state mismatches.

The HPACK RFC also does not mention anything about validating header names or values.

This also has the added positive that the only Erlang FFI is removed, making the library pure gleam!

Copy link
Copy Markdown
Owner

@vshakitskiy vshakitskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@vshakitskiy vshakitskiy merged commit c4c9d31 into vshakitskiy:mistress Mar 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants