Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early-Data header (RFC 8470) #529

Open
quasicomputational opened this issue Mar 4, 2022 · 2 comments · May be fixed by #606
Open

Early-Data header (RFC 8470) #529

quasicomputational opened this issue Mar 4, 2022 · 2 comments · May be fixed by #606

Comments

@quasicomputational
Copy link

RFC 8470 defines an Early-Data header, but the http::header module doesn't have a corresponding EARLY_DATA constant that makes it convenient to use. Could such a thing be added, please?

@seanmonstar
Copy link
Member

It should be easy to make a constant in your own code using HeaderName::from_static("early-data").

@quasicomputational
Copy link
Author

Yeah, it's not like it's a blocker or anything. But this is a standard header and it is still a bit of ugliness to work around - especially since, on this side of the abstraction barrier, I can't declare it const, and there's a hazard in misspelling the name and only finding out at runtime instead of having it detected at compile time.

dasJ added a commit to dasJ/http that referenced this issue May 5, 2023
@dasJ dasJ linked a pull request May 5, 2023 that will close this issue
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 a pull request may close this issue.

2 participants