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.
()
| 419 | // (e.g., HTTP_PROXY, HTTPS_PROXY, NO_PROXY). |
| 420 | // If not set, the client will not use environment proxy settings. |
| 421 | func 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. |
no outgoing calls
searching dependent graphs…