You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not the case here though, as the user must explicitly override the .proxy argument of the Configuration class, in order to enable proxying.
Describe the solution you'd like
The Configuration class should auto-detect the appropriate environment variables and pass them to urllib3, given that urllib3 has chosen not to do it (urllib3/urllib3#1785). If this proposal makes sense, I could open a PR.
Agree with that, I figured out the same problem and was forced to override the proxy attribute.
We should have the possibility to set proxy when init Configuration class.
Is your feature request related to a problem? Please describe.
Most programs detect that they must use a proxy by checking the
http_proxy
/https_proxy
environment variables. See for example this section ofrequests
on proxying: https://github.com/request/request#controlling-proxy-behaviour-using-environment-variables.This is not the case here though, as the user must explicitly override the
.proxy
argument of theConfiguration
class, in order to enable proxying.Describe the solution you'd like
The
Configuration
class should auto-detect the appropriate environment variables and pass them tourllib3
, given thaturllib3
has chosen not to do it (urllib3/urllib3#1785). If this proposal makes sense, I could open a PR.(This issue was originally opened in kubernetes-client/python#1175)
The text was updated successfully, but these errors were encountered: