We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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: add a context-aware handler interface that is similar to/mirrors http.Handler and http.HandlerFunc
http.Handler
http.HandlerFunc
type Handler interface { ServeHTTP(context.Context, http.ResponseWriter, *http.Request) } type HandlerFunc func(context.Context, http.ResponseWriter, *http.Request) // ServeHTTP calls f(w, r). func (f HandlerFunc) ServeHTTP(c context.Context, w http.ResponseWriter, r *http.Request) { f(c, w, r) }
In the future, we’d also want to add a ServerMux that implements the above interface. Thoughts?
The text was updated successfully, but these errors were encountered:
This is a dup of rejected https://go-review.googlesource.com/#/c/15620/
Conversation continues in #13021 (moving context to std).
Sorry, something went wrong.
No branches or pull requests
Proposal: add a context-aware handler interface that is similar to/mirrors
http.Handler
andhttp.HandlerFunc
In the future, we’d also want to add a ServerMux that implements the above interface. Thoughts?
The text was updated successfully, but these errors were encountered: