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

net/http: add a package to parse and serialize Structured Field Values #41045

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dunglas
Copy link
Contributor

@dunglas dunglas commented Aug 26, 2020

Structured Field Values fields value for HTTP is an upcoming RFC
defining data types for headers and trailers.
This specification is already used by some popular software
(including Google Chrome) and will most likely be used for most
new standard (and maybe custom) HTTP headers.
This PR is proposal to introduce a new package implementing the specification.

Fixes #41046.

New methods are also added to the Header type to manipulate structured
values.

This implementation is also available as a standalone package:
https://github.com/dunglas/httpsfv

I also published a blog post about this:
https://dunglas.fr/2020/08/a-structured-http-fields-parser-and-serializer-for-the-go-programming-language/

Structured Field Values fields value for HTTP is an upcoming RFC
defining data types for headers and trailers.
This new package implements the specification.

New methods are also added to the Header type to manipulate structured
values.
@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Aug 26, 2020
@gopherbot
Copy link
Contributor

This PR (HEAD: 24ff72f) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/250837 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 1: Code-Review-2

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/250837.
After addressing review feedback, remember to publish your drafts!

@dunglas
Copy link
Contributor Author

dunglas commented Aug 26, 2020

Related proposal: #41046

@heschi heschi closed this Dec 15, 2021
@dunglas
Copy link
Contributor Author

dunglas commented Dec 15, 2021

For the record, this code is available as a standalone package: https://github.com/dunglas/httpsfv

@heschi
Copy link
Contributor

heschi commented Dec 15, 2021

I closed old PRs to reduce load on the Gerrit importer (#50197), sorry for the trouble. I'll reopen the CL and PR.

@heschi heschi reopened this Dec 15, 2021
@dunglas
Copy link
Contributor Author

dunglas commented Dec 15, 2021

No worries. I think this one can stay closed at least while the proposal to include such feature in core hasn't be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proposal: net/http: add support for the upcoming "Structured Field Values for HTTP" RFC
4 participants