Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check support for enterprise Proxies #34

Open
hoh opened this issue Jul 6, 2023 · 0 comments
Open

Check support for enterprise Proxies #34

hoh opened this issue Jul 6, 2023 · 0 comments
Labels
question Further information is requested

Comments

@hoh
Copy link
Member

hoh commented Jul 6, 2023

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:

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)
@hoh hoh added the question Further information is requested label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant