proposal: x/net: net/http: Export function to parse http comma separated list header #44417
Comments
#41046 would be a more general solution, and maybe it should be moved off hold now that it's an RFC? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you expect to see?
Essentially, I'd like golang.org/x/net or net/http to expose functions to parse an HTTP comma-separated list header.
e.g
Cache-Control
andWWW-Authenticate
Note:
Content-Type and Content-Disposition can be parsed using mime
Currently, most of the go developers use alternatives like the archived gddo/httputil/header/.
net/http already expose ParseTime that exist in gddo/httputil/header/.
So I'd like to copy the underlying gddo/httputil/header/ implementation into x/net/http/httpguts
and change the method signatures to be as net/http ParseTime.
Example:
https://play.golang.org/p/LrsYjRqUJzP
The text was updated successfully, but these errors were encountered: