Kevin Burke
c2aeaa3959
Add support for connect timeouts
...
Modifies the timeout interface to also accept a tuple (connect, read) which
would be used to set individual connect and read timeouts for Requests. Adds
Advanced documentation explaining the interface and providing guidance for
timeout values.
2014-08-23 15:12:29 -07:00
kennethreitz
fe693c4922
Merge pull request #2142 from sigmavirus24/urllib3-1.9
...
Upgrade urllib3 to 1.9.x
2014-07-22 16:21:05 -04:00
Ian Cordasco
170d6269eb
Fix test bug courtesy of @shazow
2014-07-21 15:00:14 -05:00
Ben Bass
046302c0cb
indentation change for code review
2014-06-08 15:23:37 +01:00
Ben Bass
54e96b40b7
allow pool_kwargs to be specified in init_poolmanager
2014-05-18 20:24:35 +01:00
Ben Bass
02618c8df5
improve proxy_manager_for re-usability by subclass
2014-05-18 20:10:35 +01:00
Ben Bass
f97e78726e
Factor out HTTPAdapter.proxy_manager_for for #2048
2014-05-17 23:15:51 +01:00
schlamar
59c8d81381
Read content in Session.send instead of Adapter.send.
2014-05-12 22:42:54 +02:00
kennethreitz
c023f06aad
Merge pull request #1924 from schlamar/proxy-default-scheme
...
Default proxy scheme to HTTP
2014-05-12 15:05:56 -04:00
cjstapleton
930f03c864
Add timeout to stream with testing
...
Fixes Issue #1803
2014-02-28 10:08:57 -06:00
schlamar
4404e7e328
Default proxy scheme to http.
2014-02-18 15:24:24 +01:00
schlamar
780ce3902e
Revert "Proxy urls should have explicit schemes."
...
This reverts commit 840540b6b1 .
Conflicts:
requests/adapters.py
requests/utils.py
2014-02-18 15:15:36 +01:00
Ian Cordasco
27eb54a20a
Move creation of attributes to RequestException
...
Pass request objects in HTTPAdapter
2014-01-28 20:13:57 -06:00
Cory Benfield
5b4e9aff0e
Don't need to unquote twice.
2014-01-12 14:46:40 +00:00
Kenneth Reitz
df1c2335c8
Merge branch 'master' into fix-pickling-adapters
...
Conflicts:
AUTHORS.rst
2014-01-08 13:53:23 -05:00
kennethreitz
a855ba8189
Merge pull request #1827 from pepijndevos/master
...
Use adapter pool size for proxies
2014-01-08 10:50:00 -08:00
Kevin Burke
a0e7706440
Fix warnings when building the docs
...
It may be nice to make builds fail if new documentation generates warnings, to
avoid these sorts of problems slipping in in the future.
2013-12-28 00:09:29 -08:00
Pepijn de Vos
9e843468de
use adapter pool size for proxies
2013-12-24 11:14:04 +01:00
Ian Cordasco
1500632b60
Move comment to the right place
2013-12-13 22:29:30 -06:00
Erik Wickstrom
16f9798208
Fixed pickle support for requests.adapters.HTTPAdapter by adding
...
'proxy_manager' when unpickling.
2013-12-13 22:28:37 -06:00
Ian Cordasco
cac2077c36
Prevent error when using proxies after picking an Adapter
2013-12-12 13:03:37 -06:00
kennethreitz
1cac72bfa9
Merge pull request #1669 from Lukasa/chunked
...
[WIP] Better chunked handling.
2013-12-05 14:36:10 -08:00
daftshady
4972133a9b
use geturl to lower scheme
2013-11-19 19:54:46 +09:00
daftshady
8c8938e8cb
issue #1746 : Don't lowercase the whole URL!
2013-11-19 18:59:22 +09:00
Matthew Schinckel
edf7e5f420
Fix documentation typo.
2013-11-04 12:29:24 +10:30
Cory Benfield
9606f0240b
PEP8 fix to make me happier.
2013-10-13 09:54:01 +01:00
Cory Benfield
31c0962e83
Better connection behaviour for chunked upload.
2013-10-13 09:53:44 +01:00
kennethreitz
43477edc91
Merge pull request #1636 from Lukasa/httpsprox
...
Don't send the full URL on CONNECT messages.
2013-10-07 16:23:18 -07:00
Graham Dumpleton
4291f76c99
Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
2013-10-04 16:07:11 +10:00
Cory Benfield
8b7fcfb49a
Don't send the full URL on CONNECT messages.
2013-09-28 15:46:43 +01:00
Kenneth Reitz
c93419f512
TimeoutSauce!
2013-09-24 14:31:00 -04:00
Kenneth Reitz
54ad646067
merge 2.0 insto master
2013-09-24 14:13:28 -04:00
Kenneth Reitz
c64c0ab121
prototype for new urllib3 timeouts
2013-09-24 14:06:24 -04:00
Sayan Chowdhury
0a52d9405e
minor typo: Fix requests spelling
2013-09-11 20:21:57 +05:30
Cory Benfield
2e5a674601
Add proxy_headers functionality.
...
This brings us in line with urllib3's fancy new magic for sending
headers to HTTP(S) proxies.
2013-08-14 09:47:44 +01:00
ms4py
c951f0543c
Cache manager for proxy connection.
2013-08-03 13:59:28 +02:00
ms4py
134699faf9
Fix for new proxy API.
2013-08-03 13:57:15 +02:00
Cory Benfield
840540b6b1
Proxy urls should have explicit schemes.
2013-07-28 07:16:06 +01:00
David Pursehouse
9e771aa79c
Fix test cases that fail when running behind a proxy
...
When sending a request via `Session.send()` the proxies must be
explicitly given with the `proxies` argument. This is not done
in the test cases, which means that they fail when run on a system
that is behind a proxy.
Update test cases to make sure the proxies are set in the sessions.
2013-07-23 16:55:27 +09:00
Viktor Haag
01993d21dc
added tests for mixed-case scheme URLs, changed adapters passing down URLs into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key
2013-05-24 16:14:14 -04:00
Viktor Haag
5e94f38001
- fixed func call syntax on lower to lower()
...
- added test cases for trying to test GETS on mixed-case schemas
2013-05-24 14:01:30 -04:00
Viktor Haag
3004ad5398
Lower-ify url before checking against prefix with startswith()
2013-05-24 11:26:00 -04:00
Randy Merrill
c03e14242b
Adding the _pool_bloc to the list of attrs.
2013-05-11 18:30:31 -07:00
Randy Merrill
9cb3d6444d
Fixing the call to init_poolmanagers to correctly unpickle the adapter.
2013-05-11 18:13:08 -07:00
Randy Merrill
053613688b
Moving the order of the arguments in the init to not interfere with existing usage.
2013-05-11 18:04:43 -07:00
Randy Merrill
2eb682671d
Adding an argument to the adapter for passing a block argument to the connection pool.
...
This allows for blocking when using threading to prevent the pool from creating more connections that the max-size allows.
Specifically was seeing the following errors without the block=True:
WARNING:requests.packages.urllib3.connectionpool:HttpConnectionPool is full, discarding connection: www.example.com
2013-05-10 23:46:54 -07:00
Daniel Lindsley
36dcce1a06
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-12 16:40:39 -07:00
Cory Benfield
c73f653352
Add HTTPAdapter to API docs.
2013-04-09 19:54:47 +01:00
Florian Mueller
c41932e184
Fixed some pickeling issues with HTTPAdapter and Session
...
Added trust_env and stream to Session.__attrs__. Initialize
self._pool_connections and self._pool_maxsize in HTTPAdapter.
2013-03-12 16:04:19 +01:00
Darjus Loktevic
e706d18cf8
Pickling of Session and HTTPAdapter + a test
...
This is for issue #1088
2013-03-11 18:12:34 +00:00