MCPcopy Index your code
hub / github.com/imroc/req / SetProxy

Function SetProxy

client_wrapper.go:536–538  ·  view source on GitHub ↗

SetProxy is a global wrapper methods which delegated to the default client's Client.SetProxy.

(proxy func(*http.Request) (*url.URL, error))

Source from the content-addressed store, hash-verified

534// SetProxy is a global wrapper methods which delegated
535// to the default client's Client.SetProxy.
536func SetProxy(proxy func(*http.Request) (*url.URL, error)) *Client {
537 return defaultClient.SetProxy(proxy)
538}
539
540// OnBeforeRequest is a global wrapper methods which delegated
541// to the default client's Client.OnBeforeRequest.

Callers

nothing calls this directly

Calls 1

SetProxyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…