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.
1 parent 78f6856 commit 05bc3acCopy full SHA for 05bc3ac
src/net/http/server.go
@@ -231,13 +231,13 @@ type CloseNotifier interface {
231
232
var (
233
// ServerContextKey is a context key. It can be used in HTTP
234
- // handlers with context.WithValue to access the server that
+ // handlers with Context.Value to access the server that
235
// started the handler. The associated value will be of
236
// type *Server.
237
ServerContextKey = &contextKey{"http-server"}
238
239
// LocalAddrContextKey is a context key. It can be used in
240
- // HTTP handlers with context.WithValue to access the local
+ // HTTP handlers with Context.Value to access the local
241
// address the connection arrived on.
242
// The associated value will be of type net.Addr.
243
LocalAddrContextKey = &contextKey{"local-addr"}
0 commit comments