net/http.Request.Context (method)
38 uses
net/http (current package)
client.go#L356: oldCtx := req.Context()
h2_bundle.go#L795: cc, err := p.t.dialClientConn(req.Context(), addr, singleUse)
h2_bundle.go#L821: call := p.getStartDialLocked(req.Context(), addr)
h2_bundle.go#L1023: if call.ctx == req.Context() {
h2_bundle.go#L7938: case <-req.Context().Done():
h2_bundle.go#L7940: err = req.Context().Err()
h2_bundle.go#L8599: ctx := req.Context()
h2_bundle.go#L8909: return httpcommon.EncodeHeaders(req.Context(), httpcommon.EncodeHeadersParam{
h2_bundle.go#L10498: trace := httptrace.ContextClientTrace(req.Context())
h2_bundle.go#L10506: trace := httptrace.ContextClientTrace(req.Context())
request.go#L352: func (r *Request) Context() context.Context {
request.go#L583: trace := httptrace.ContextClientTrace(r.Context())
server.go#L3687: s, _ := r.Context().Value(ServerContextKey).(*Server)
server.go#L3849: ctx, cancelCtx = context.WithTimeout(r.Context(), h.dt)
transport.go#L584: ctx := req.Context()
transport.go#L646: ctx, cancel := context.WithCancelCause(req.Context())
transport.go#L1490: ctx := req.Context()
transport.go#L2893: if logf, ok := tr.Request.Context().Value(tLogKey{}).(func(string, ...any)); ok {
net/http/httputil
reverseproxy.go#L351: ctx := req.Context()
reverseproxy.go#L492: outreq = outreq.WithContext(httptrace.WithClientTrace(outreq.Context(), trace))
reverseproxy.go#L579: if req.Context().Value(http.ServerContextKey) != nil {
reverseproxy.go#L780: case <-req.Context().Done():
net/http/pprof
pprof.go#L119: case <-r.Context().Done():
pprof.go#L124: srv, ok := r.Context().Value(http.ServerContextKey).(*http.Server)
pprof.go#L304: case <-r.Context().Done():
pprof.go#L305: err := r.Context().Err()
golang.org/x/net/http2
client_conn_pool.go#L69: cc, err := p.t.dialClientConn(req.Context(), addr, singleUse)
client_conn_pool.go#L95: call := p.getStartDialLocked(req.Context(), addr)
client_conn_pool.go#L297: if call.ctx == req.Context() {
transport.go#L612: case <-req.Context().Done():
transport.go#L614: err = req.Context().Err()
transport.go#L1268: ctx := req.Context()
transport.go#L1577: return httpcommon.EncodeHeaders(req.Context(), httpcommon.EncodeHeadersParam{
transport.go#L3160: trace := httptrace.ContextClientTrace(req.Context())
transport.go#L3168: trace := httptrace.ContextClientTrace(req.Context())
google.golang.org/grpc
server.go#L1117: s.serveStreams(r.Context(), st, nil)
google.golang.org/grpc/internal/transport
handler_server.go#L80: if la := r.Context().Value(http.LocalAddrContextKey); la != nil {
handler_server.go#L405: case <-ht.req.Context().Done():