{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/13115","labels_url":"https://api.github.com/repos/golang/go/issues/13115/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13115/comments","events_url":"https://api.github.com/repos/golang/go/issues/13115/events","html_url":"https://github.com/golang/go/issues/13115","id":114390918,"number":13115,"title":"proposal: x/net/context/ctxhttp: Context-aware HTTP handlers","user":{"login":"kyleconroy","id":34893,"avatar_url":"https://avatars.githubusercontent.com/u/34893?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleconroy","html_url":"https://github.com/kyleconroy","followers_url":"https://api.github.com/users/kyleconroy/followers","following_url":"https://api.github.com/users/kyleconroy/following{/other_user}","gists_url":"https://api.github.com/users/kyleconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleconroy/subscriptions","organizations_url":"https://api.github.com/users/kyleconroy/orgs","repos_url":"https://api.github.com/users/kyleconroy/repos","events_url":"https://api.github.com/users/kyleconroy/events{/privacy}","received_events_url":"https://api.github.com/users/kyleconroy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-31T06:32:24Z","updated_at":"2015-10-31T21:48:07Z","closed_at":"2015-10-31T21:48:07Z","body":"Proposal: add a context-aware handler interface that is similar to/mirrors `http.Handler` and `http.HandlerFunc`\r\n\r\n```go\r\ntype Handler interface {\r\n    ServeHTTP(context.Context, http.ResponseWriter, *http.Request)\r\n}\r\n\r\ntype HandlerFunc func(context.Context, http.ResponseWriter, *http.Request)\r\n\r\n// ServeHTTP calls f(w, r).\r\nfunc (f HandlerFunc) ServeHTTP(c context.Context, w http.ResponseWriter, r *http.Request) {\r\n    f(c, w, r)\r\n}\r\n```\r\n\r\nIn the future, we’d also want to add a ServerMux that implements the above interface. Thoughts?\r\n"}}