How do you utilize proxy support with the python aiohttp framework -
does os.environ['http_proxy']
still work? , how utilize proxy per request?
http proxy support has added aiohttp in recent 0.7.3 release. doesn't use os.environ['http_proxy']
, never do.
to specify proxy request can use code this:
connector = aiohttp.proxyconnector(proxies={'http': 'http://proxyaddr:8118'}) response = yield aiohttp.request('get', 'http://python.org/', connector=connector)
https proxies not supported yet, sorry.
perhaps add feature soon: need https proxies our business tasks.
Comments
Post a Comment