summaryrefslogtreecommitdiff
path: root/requests/adapters.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Use urllib for chunked requests"Nate Prewitt2020-02-181-13/+58
| | | | This reverts commit 2da7fe08586aeaff614c017a9a834a22c937384a.
* Use urllib for chunked requestsLeon Verrall2019-07-021-58/+13
|
* remove final remnants from 2.6Nate Prewitt2018-10-171-7/+6
|
* Use comprehensions whenever possibleHugo Osvaldo Barrera2018-10-161-2/+1
|
* wrap url parsing exceptions from urllib3's PoolManagerNate Prewitt2018-09-301-2/+7
|
* Misspelled 'proxy' parameter in docstringSteven M. Vascellaro2018-06-261-1/+1
| | | | The 'proxy' parameter was misspelled as 'proxies' in the docstring.
* pass kwargs from send call to add_headers, per documentationJonathan Elliott Blum2018-02-021-1/+1
|
* Check if host is invalid for proxyNehal J Wani2017-11-151-1/+6
| | | | | | | | According to RFC3986, the authority section can be empty for a given URL, however, for a proxy URL, it shouldn't be. This patch adds a check to verify that the parsed URL will have a valid host before creating the proxy manager. Fixes #4353
* support extraction of certificate bundle from a zip archiveArthur Vigil2017-11-051-4/+4
|
* Correctly raise SSLError from urllib3.Cory Benfield2017-07-291-0/+5
|
* fixKenneth Reitz2017-05-261-3/+3
|
* fix adapters.pyKenneth Reitz2017-05-261-14/+15
|
* Simplify fix for #4025Jonas Laursen2017-05-181-32/+33
|
* Fix #4025Jonas Laursen2017-05-181-32/+32
|
* Remove some unused imports.Chris Gavin2017-04-251-1/+1
|
* remove change for timeout=NoneAlexander 'Leo' Bergolth2017-03-301-5/+2
|
* whitespaceAlexander 'Leo' Bergolth2017-03-291-1/+0
|
* small rearrangementAlexander 'Leo' Bergolth2017-03-291-3/+3
|
* allow urllib3 Timeout objects as timeout parameter for HTTPAdapter.send()Alexander 'Leo' Bergolth2017-03-291-4/+10
| | | | | omit timeout argument when calling urlopen on the connection. this allows setting a default timeout at connection pool level: adapter.poolmanager.connection_pool_kw['timeout'] = urllib3.Timeout(...)
* PR review fixes:Bastien Gérard2017-03-221-7/+12
| | | | | | - used httpbin_secure for tests - updated docstring related to `verify` param" - used TLS acronym instead of SSL
* #3927 fixes based on reviewBastien Gérard2017-03-221-4/+5
|
* #3926 raise IOError when providing an invalid path to a CA bundle or ↵Bastien Gérard2017-03-221-8/+15
| | | | certificate files
* [httpAdapter] allow empty password in proxy credentialsPawel Miech2016-10-311-1/+1
| | | | fixes #3659
* Document bunch of return typesVille Skyttä2016-08-091-0/+6
|
* Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Olli2016-05-241-1/+15
| | | | | | | | | | * BaseAdapter definition of send is missing mandatory params * Copy over relevant parts of the interface documentation * Indentation fix * Change base class documentation for close
* Merge pull request #2953 from Lukasa/socks_proxy_supportKenneth Reitz2016-04-291-8/+33
|\ | | | | SOCKS Proxy Support
| * Help @sigmavirus24 with code golf.Cory Benfield2015-12-301-8/+7
| |
| * Some code cleanups.Cory Benfield2015-12-301-23/+25
| |
| * Don't parse nonexistent URLs.Cory Benfield2015-12-301-1/+2
| |
| * Add support for SOCKSCory Benfield2015-12-301-10/+33
| |
* | Clear any pooled proxy connectionsMatt Dainty2016-04-151-2/+4
| | | | | | | | | | As well as clearing any pooled direct connections, iterate over any ProxyManager objects and clear any pooled proxy connections there as well.
* | Raise a ProxyError for proxy related connection issues.Alexander Shchapov2016-03-171-0/+3
| |
* | Remove int type on max_retries argument.Carson Lam2016-01-291-1/+1
|/
* Update adapters.pyOlle Lundberg2015-11-251-1/+1
| | | Remove duplicate word.
* Merge pull request #2858 from Lukasa/support_ca_cert_directoriesIan Cordasco2015-11-071-1/+7
|\ | | | | Add support for a directory of CAs
| * Add support for a directory of CAsCory Benfield2015-11-051-1/+7
| |
* | Fix breakage introduced by 8f591682Cory Benfield2015-11-051-2/+2
|/
* Use buffering for HTTP responses on chunked requestsDimitris Bliablias2015-10-151-1/+9
| | | | | | | | | | | For non-chunked requests, the request is performed using the 'urlopen' method that underlying uses buffering for the HTTP responses (for Python 2.7+ versions). For chunked requests though, the request is made via a different code path and so the 'getresponse' method is called without using buffering. So, the response is consumed per single byte via a recv() call on the underlying socket. This patch, fixes that issue to mimic the non-chucked request behavior.
* NewConnectionErrors aren't timeouts.Cory Benfield2015-10-081-1/+4
| | | | This is a compatibility change, and should be removed in 2.8.0
* Merge pull request #2678 from sigmavirus24/proposed/2.8.0Cory Benfield2015-10-051-0/+4
|\ | | | | Proposed 2.8.0
| * Catch and wrap ClosedPoolErrorSusan Tan2015-07-171-0/+4
| | | | | | | | | | | | | | Partially resolves #1572: "urllib3 exceptions passing through requests API". Inspired from Lukasa's 2605be11d82d42438ac7c3993810c955bde74cef.
* | don't lowercase a url before urlparsing itJason Grout2015-08-281-1/+1
| | | | | | | | urlparse automatically lowercases the scheme and hostname
* | Use url parsing to check the schemeJason Grout2015-08-281-1/+2
| |
* | Fix documentation for the proxies dictionaryJason Grout2015-08-271-1/+1
| |
* | Factor out the proxy selection codeJason Grout2015-08-271-13/+5
| |
* | Fix another place the proxy-selecting logic is used.Jason Grout2015-08-271-3/+5
| |
* | Clarify the per-host proxy codeJason Grout2015-08-251-2/+4
| |
* | Implement per-host proxiesJason Grout2015-08-241-1/+2
| | | | | | | | | | | | | | | | | | This change allows the proxy dict to be have entries of the form {'<scheme>://<hostname>': '<proxy>'}. Host-specific proxies will be used in preference to the scheme-specific proxies (i.e., proxy dict entries with keys like 'http' or 'https'). Fixes #2722
* | modify proxy_headers docstringsqingyunha2015-08-241-1/+0
| |
* | Docs: Fix links to `timeouts` section by using :ref: instead ofLukas Graf2015-08-151-2/+2
|/ | | | linking to .html files.