MCPcopy Index your code
hub / github.com/google/go-github / WithEnvProxy

Function WithEnvProxy

github/github.go:421–426  ·  view source on GitHub ↗

WithEnvProxy returns a ClientOptionsFunc that configures the Client to use the HTTP proxy settings from the environment variables (e.g., HTTP_PROXY, HTTPS_PROXY, NO_PROXY). If not set, the client will not use environment proxy settings.

()

Source from the content-addressed store, hash-verified

419// (e.g., HTTP_PROXY, HTTPS_PROXY, NO_PROXY).
420// If not set, the client will not use environment proxy settings.
421func WithEnvProxy() ClientOptionsFunc {
422 return func(o *clientOptions) error {
423 o.envProxy = true
424 return nil
425 }
426}
427
428// WithAuthToken returns a ClientOptionsFunc that sets the authentication token
429// for a Client. If not set, the client will make unauthenticated requests.

Callers 2

TestWithEnvProxyFunction · 0.85
TestClient_CloneFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestWithEnvProxyFunction · 0.68
TestClient_CloneFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…