Exemple #1
0
 def __init__(self, *args, session=None, **kwargs):
     super(AioIMDSFetcher, self).__init__(*args, **kwargs)
     self._trust_env = bool(get_environ_proxies(self._base_url))
     self._session = session or aiohttp.ClientSession
 def _get_proxies(self, url):
     # We could also support getting proxies from a config file,
     # but for now proxy support is taken from the environment.
     return get_environ_proxies(url)
Exemple #3
0
 def _get_proxies(self, url):
     # We could also support getting proxies from a config file,
     # but for now proxy support is taken from the environment.
     return get_environ_proxies(url)