net/http.Request.Context (method)
40 uses
net/http (current package)
client.go#L361: oldCtx := req.Context()
clientconn.go#L380: ctx := req.Context()
clientconn.go#L384: ctx, cancel := context.WithCancelCause(req.Context())
h2_bundle.go#L790: cc, err := p.t.dialClientConn(req.Context(), addr, singleUse)
h2_bundle.go#L816: call := p.getStartDialLocked(req.Context(), addr)
h2_bundle.go#L1018: if call.ctx == req.Context() {
h2_bundle.go#L7918: case <-req.Context().Done():
h2_bundle.go#L7920: err = req.Context().Err()
h2_bundle.go#L8607: ctx := req.Context()
h2_bundle.go#L8916: return httpcommon.EncodeHeaders(req.Context(), httpcommon.EncodeHeadersParam{
h2_bundle.go#L10662: trace := httptrace.ContextClientTrace(req.Context())
h2_bundle.go#L10670: trace := httptrace.ContextClientTrace(req.Context())
request.go#L352: func (r *Request) Context() context.Context {
request.go#L583: trace := httptrace.ContextClientTrace(r.Context())
server.go#L3658: s, _ := r.Context().Value(ServerContextKey).(*Server)
server.go#L3820: ctx, cancelCtx = context.WithTimeout(r.Context(), h.dt)
transport.go#L592: ctx := req.Context()
transport.go#L654: ctx, cancel := context.WithCancelCause(req.Context())
transport.go#L1519: ctx := req.Context()
transport.go#L2968: if logf, ok := tr.Request.Context().Value(tLogKey{}).(func(string, ...any)); ok {
net/http/httputil
reverseproxy.go#L409: ctx := req.Context()
reverseproxy.go#L562: outreq = outreq.WithContext(httptrace.WithClientTrace(outreq.Context(), trace))
reverseproxy.go#L649: if req.Context().Value(http.ServerContextKey) != nil {
reverseproxy.go#L850: case <-req.Context().Done():
net/http/pprof
pprof.go#L120: case <-r.Context().Done():
pprof.go#L125: srv, ok := r.Context().Value(http.ServerContextKey).(*http.Server)
pprof.go#L305: case <-r.Context().Done():
pprof.go#L306: err := r.Context().Err()
golang.org/x/net/http2
client_conn_pool.go#L59: cc, err := p.t.dialClientConn(req.Context(), addr, singleUse)
client_conn_pool.go#L85: call := p.getStartDialLocked(req.Context(), addr)
client_conn_pool.go#L287: if call.ctx == req.Context() {
transport.go#L949: ctx := req.Context()
transport.go#L1258: return httpcommon.EncodeHeaders(req.Context(), httpcommon.EncodeHeadersParam{
transport.go#L2977: trace := httptrace.ContextClientTrace(req.Context())
transport.go#L2985: trace := httptrace.ContextClientTrace(req.Context())
transport_common.go#L296: case <-req.Context().Done():
transport_common.go#L298: err = req.Context().Err()
google.golang.org/grpc
server.go#L1134: 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#L407: case <-ht.req.Context().Done():