Add HTTP proxy support via environment variables#968
Open
kevinchiu wants to merge 1 commit intomassive-com:masterfrom
Open
Add HTTP proxy support via environment variables#968kevinchiu wants to merge 1 commit intomassive-com:masterfrom
kevinchiu wants to merge 1 commit intomassive-com:masterfrom
Conversation
When HTTPS_PROXY, https_proxy, HTTP_PROXY, or http_proxy environment variables are set, use urllib3.ProxyManager instead of PoolManager. This enables the client to work in environments that require proxy configuration, such as corporate networks, CI/CD pipelines, and sandboxed development environments. The behavior is backward compatible - when no proxy environment variables are set, PoolManager is used as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatically use
urllib3.ProxyManagerwhenHTTPS_PROXY/HTTP_PROXYenvironment variables are set.Enables the client to work in proxy-required environments (corporate networks, CI/CD, sandboxed dev environments) without code changes. Follows the same convention as the
requestslibrary.Fully backward compatible - uses
PoolManagerwhen no proxy vars are set.