Skip to content
Myr

proxy pooling!

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 0c4342a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
18 unmodified lines
19from .hooks import dispatch_hook20from .structures import CaseInsensitiveDict21from .status_codes import codes22from .packages.urllib3.exceptions import MaxRetryError23from .packages.urllib3 import connectionpool23from .packages.urllib3 import connectionpool, poolmanager24from .exceptions import (25 Timeout, URLRequired, TooManyRedirects, HTTPError, ConnectionError)26from .utils import (27 dict_from_cookiejar, get_unicode_from_response,
339 unmodified lines
367 _p = urlparse(url)368 proxy = self.proxies.get(_p.scheme)369370 if proxy:371 conn = connectionpool.proxy_from_url()371 conn = poolmanager.proxy_from_url(url)372 else:373 # Check to see if keep_alive is allowed.374 if self.config.get('keep_alive'):375 conn = self._poolmanager.connection_from_url(url)
197 unmodified lines