MCPcopy Create free account
hub / github.com/imroc/req / SetContext

Function SetContext

request_wrapper.go:365–367  ·  view source on GitHub ↗

SetContext is a global wrapper methods which delegated to the default client, create a request and SetContext for request.

(ctx context.Context)

Source from the content-addressed store, hash-verified

363// SetContext is a global wrapper methods which delegated
364// to the default client, create a request and SetContext for request.
365func SetContext(ctx context.Context) *Request {
366 return defaultClient.R().SetContext(ctx)
367}
368
369// DisableTrace is a global wrapper methods which delegated
370// to the default client, create a request and DisableTrace for request.

Callers

nothing calls this directly

Calls 2

SetContextMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…