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
Contrary to the requests library, it won’t read environment variables by default. But you can do so by passing trust_env=True into aiohttp.ClientSession constructor for extracting proxy configuration from HTTP_PROXY, HTTPS_PROXY, WS_PROXY or WSS_PROXY environment variables (all are case insensitive):
async with aiohttp.ClientSession(trust_env=True) as session:
async with session.get("http://python.org") as resp:
print(resp.status)
The text was updated successfully, but these errors were encountered:
We want to support Proxies for corporation networks.
Documentation on aiohttp:
https://docs.aiohttp.org/en/stable/client_advanced.html?highlight=proxy#proxy-support
Relevant part:
The text was updated successfully, but these errors were encountered: