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

proposal: net/http/httputil: Add ParseAcceptHeader #23400

Closed
urandom opened this issue Jan 10, 2018 · 2 comments
Closed

proposal: net/http/httputil: Add ParseAcceptHeader #23400

urandom opened this issue Jan 10, 2018 · 2 comments

Comments

@urandom
Copy link

urandom commented Jan 10, 2018

Currently, there's no easy way of handling the various Accept* headers, which are quite useful for API servers. There's also no easy way of finding any third party parsers for these headers as well.

In fact, the only piece of code I found was in gddo: https://github.com/golang/gddo/blob/master/httputil/header/header.go#L172, but that's not quite usable as a library.

It would be nice to add that, or a similar function to httputil.

@gopherbot gopherbot added this to the Proposal milestone Jan 10, 2018
@bradfitz
Copy link
Contributor

Dup of #19307 ?

@urandom
Copy link
Author

urandom commented Jan 10, 2018

@bradfitz
Looks like #19307 already covers my request

@urandom urandom closed this as completed Jan 10, 2018
@mikioh mikioh changed the title proposal: Add httputil.ParseAcceptHeader proposal: net/http/httputil: Add ParseAcceptHeader Jan 13, 2018
@golang golang locked and limited conversation to collaborators Jan 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants