net/http.Request.WithContext (method)
27 uses
net/http (current package)
h2_bundle.go#L5685: req = req.WithContext(st.ctx)
request.go#L354: func (r *Request) WithContext(ctx context.Context) *Request {
server.go#L3302: r = r.WithContext(ctx)
cloud.google.com/go/compute/metadata
metadata.go#L133: res, err := defaultClient.hc.Do(req.WithContext(ctx))
cloud.google.com/go/storage
reader.go#L122: req = req.WithContext(ctx)
github.com/aws/aws-sdk-go/aws/request
request_context.go#L13: r.HTTPRequest = r.HTTPRequest.WithContext(ctx)
github.com/go-git/go-git/v5/plumbing/transport/http
receive_pack.go#L95: res, err := s.client.Do(req.WithContext(ctx))
upload_pack.go#L93: res, err := s.client.Do(req.WithContext(ctx))
github.com/prometheus/client_golang/prometheus/promhttp
instrument_client.go#L215: r = r.WithContext(httptrace.WithClientTrace(r.Context(), trace))
go.opencensus.io/plugin/ochttp
client_stats.go#L43: req = req.WithContext(ctx)
route.go#L39: r = r.WithContext(ctx)
server.go#L91: r = r.WithContext(context.WithValue(r.Context(), addedTagsKey{}, &tags))
server.go#L139: return r.WithContext(ctx), span.End
trace.go#L64: req = req.WithContext(httptrace.WithClientTrace(ctx, t.newClientTrace(req, span)))
trace.go#L66: req = req.WithContext(ctx)
golang.org/x/net/context/ctxhttp
ctxhttp.go#L27: resp, err := client.Do(req.WithContext(ctx))
golang.org/x/net/http2
server.go#L2130: req = req.WithContext(st.ctx)
golang.org/x/pkgsite/cmd/prober
main.go#L353: res, err := client.Do(req.WithContext(ctx))
golang.org/x/pkgsite/internal/middleware
experiment.go#L105: return r.WithContext(experiment.NewContext(r.Context(), exps...))
requestlog.go#L75: h.delegate.ServeHTTP(w2, r.WithContext(log.NewContextWithTraceID(r.Context(), traceID)))
stats.go#L26: h.ServeHTTP(sw, r.WithContext(ctx))
timeout.go#L20: h.ServeHTTP(w, r.WithContext(ctx))
google.golang.org/api/idtoken
cache.go#L49: req = req.WithContext(ctx)
google.golang.org/api/internal/gensupport
send.go#L68: resp, err := client.Do(req.WithContext(ctx))
send.go#L138: resp, err = client.Do(req.WithContext(ctx))
google.golang.org/api/internal/impersonate
impersonate.go#L100: req = req.WithContext(i.ctx)
google.golang.org/grpc
proxy.go#L147: req = req.WithContext(ctx)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |