Skip to content

Http Proxy Env Setting #5855

Answered by webknjaz
Stillrainy asked this question in Q&A
Discussion options

You must be logged in to vote

If you set trust_env=True in your ClientSession instance, it'll automatically use the values of the standard HTTP_PROXY/HTTPS_PROXY env vars and the credentials from ~/.netrc: https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientSession.trust_env.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants