Hugo Osvaldo Barrera
18857a0eed
Issue #749 : Add optional SNI support for python2.
...
SNI support will be enabled for python2 if ndg-httpsclient and pyopenssl are available.
2013-05-03 21:05:42 -03:00
Kenneth Reitz
e585e496c9
Merge pull request #1341 from cdunklau/docstring_test_1329
...
Minor update to tests, added docstrings
2013-05-01 11:40:02 -07:00
Colin Dunklau
f93275c47f
Minor update to tests, added docstrings
...
Requested by @sigmavirus24.
2013-05-01 12:51:09 -05:00
Kenneth Reitz
4f83ef8328
Merge pull request #1314 from duailibe/master
...
Fix small typo in the Support docs
2013-05-01 10:29:40 -07:00
Kenneth Reitz
0f1bb96f01
Merge pull request #1337 from amercader/master
...
Fix minor issues on the API docs
2013-05-01 10:28:18 -07:00
Kenneth Reitz
e6e9b550c0
Merge pull request #1339 from cdunklau/case_insensitive_headers_cleanup
...
Rewrite CaseInsensitiveDict to work correctly/sanely
2013-05-01 10:27:58 -07:00
Kenneth Reitz
f8f1db8458
Merge pull request #1340 from ambv/tox_ini
...
Remove 3.1 and 3.2 from setup.py, add tox.ini to simplify testing on multiple versions
2013-05-01 10:27:02 -07:00
Łukasz Langa
7e825acd9b
Remove Python 3.1 and 3.2 from the trove classifiers in setup.py
2013-05-01 19:26:12 +02:00
Colin Dunklau
f7596c75dc
Rewrite CaseInsensitiveDict to work correctly/sanely
...
Fixes #649 and #1329 by making Session.headers a CaseInsensitiveDict,
and fixing the implementation of CID. Credit for the brilliant idea
to map `lowercased_key -> (cased_key, mapped_value)` goes to
@gazpachoking, thanks a bunch.
Changes from original implementation of CaseInsensitiveDict:
1. CID is rewritten as a subclass of `collections.MutableMapping`.
2. CID remembers the case of the last-set key, but `__setitem__`
and `__delitem__` will handle keys without respect to case.
3. CID returns the key case as remembered for the `keys`, `items`,
and `__iter__` methods.
4. Query operations (`__getitem__` and `__contains__`) are done in
a case-insensitive manner: `cid['foo']` and `cid['FOO']` will
return the same value.
5. The constructor as well as `update` and `__eq__` have undefined
behavior when given multiple keys that have the same `lower()`.
6. The new method `lower_items` is like `iteritems`, but keys are
all lowercased.
7. CID raises `KeyError` for `__getitem__` as normal dicts do. The
old implementation returned
6. The `__repr__` now makes it obvious that it's not a normal dict.
See PR #1333 for the discussions that lead up to this implementation
2013-04-30 14:52:27 -05:00
amercader
505d2487e3
Fix API documentation issues
...
* 'Cookies' and 'Encodings' sections were not built because the
reference to the functions was wrong.
* 'Exceptions' section had a wrong anchor link ('module-requests', same
one as the main heading).
* Remove 'decode_gzip' function, which is no longer present.
2013-04-30 16:15:56 +02:00
Kenneth Reitz
ab36f3cc6f
Merge pull request #1332 from bboe/urllib3
...
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
2013-04-28 16:58:08 -07:00
Bryce Boe
49ca72c802
Update urllib3 to 59de03e6163c6928dc01832ed6e48e9f6c34c795.
...
This update includes two fixes:
* https://github.com/shazow/urllib3/issues/149
* https://github.com/shazow/urllib3/issues/174
2013-04-27 14:33:39 -07:00
Kenneth Reitz
d2ba5798ec
Merge pull request #1330 from Kwpolska/patch-1
...
Fixing a tiny typo, noticed while working on the Polish translation
2013-04-27 04:53:37 -07:00
Chris Warrick
c3bef6b0d9
A tiny typo, noticed while working on the Polish translation.
2013-04-27 14:52:35 +03:00
Kenneth Reitz
98dea03710
Merge pull request #1328 from gazpachoking/session_cj_fix
...
Session CookieJar fix
2013-04-26 00:02:28 -07:00
Chase Sterling
0c609b59ab
Fix session CookieJars without breaking more stuff this time
2013-04-25 23:15:50 -04:00
Chase Sterling
a7fef58756
Add another session cookie test
2013-04-25 23:11:43 -04:00
Chase Sterling
3ff8d43801
Fix cookielib import
2013-04-25 22:40:24 -04:00
Chase Sterling
9763a671da
Fix crash when session.cookies was not a RequestsCookieJar
2013-04-25 22:34:51 -04:00
Chase Sterling
1866f7596e
Add test for session cookiejars other than RequestsCookieJar
2013-04-25 22:32:03 -04:00
Kenneth Reitz
8f3f4e2744
milla
2013-04-20 00:22:13 -04:00
Kenneth Reitz
4438bfcc44
Merge remote-tracking branch 'origin/master'
2013-04-20 00:18:33 -04:00
Kenneth Reitz
65b6ef6036
pt
2013-04-20 00:18:27 -04:00
Lucas Duailibe
1ca423ec80
Fix small typo in the Support docs
2013-04-18 20:59:17 -03:00
Kenneth Reitz
770c3d7548
Merge pull request #1313 from iurisilvio/fix_max_redirects_docs
...
Fix max_redirects docs issue #1301
2013-04-17 12:39:03 -07:00
Iuri de Silvio
736e8cd735
Fix max_redirects docs issue #1301
2013-04-17 12:27:06 -07:00
Kenneth Reitz
6046fcffe8
Merge pull request #1279 from jemerick/unicode_multipart_post
...
Unicode strings in multipart post requests
2013-04-16 12:55:58 -07:00
Kenneth Reitz
d13bf9f113
support for draft-tbray-http-legally-restricted-status-02
...
http://datatracker.ietf.org/doc/draft-tbray-http-legally-restricted-stat
us/?include_text=1
2013-04-15 22:47:20 -04:00
Kenneth Reitz
ae5419db17
translations
2013-04-15 03:22:56 -04:00
Kenneth Reitz
9c2f9f61ef
Translatoins
2013-04-15 03:22:48 -04:00
Kenneth Reitz
636476e704
Merge remote-tracking branch 'origin/master'
2013-04-15 03:21:40 -04:00
Kenneth Reitz
aafca7acdc
translations
2013-04-15 03:21:32 -04:00
Kenneth Reitz
a527ecfabd
Merge pull request #1242 from oviboy/master
...
HTTP Digest Auth case insensitive replacement of "Digest "
2013-04-13 20:28:43 -07:00
Kenneth Reitz
967cfbe663
Merge pull request #1299 from schlamar/fix-decompression
...
Use streaming decompression feature of urllib3.
2013-04-13 20:27:46 -07:00
Kenneth Reitz
9df450193f
Merge pull request #1302 from ssbarnea/master
...
Documents the actual logging methods #1297
2013-04-13 20:25:47 -07:00
Kenneth Reitz
082029ff2e
switch streaming requests to httpbin
2013-04-13 15:26:49 -04:00
Kenneth Reitz
c0baec1431
Merge pull request #1305 from michaelhelmick/patch-1
...
Fix Advanced docs Twitter Streaming example
2013-04-13 12:24:21 -07:00
Kenneth Reitz
561366cab0
Merge pull request #1309 from toastdriven/better-max-retries
...
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-13 12:05:13 -07:00
Kenneth Reitz
f0950a9e6c
Merge pull request #1311 from sigmavirus24/fix1303
...
Change the method when it isn't already GET/HEAD
2013-04-13 12:02:29 -07:00
Ian Cordasco
c5d0a0931e
Change the method when it isn't already GET/HEAD
...
For some reason it was only change the method when a POST was being made. This
is almost certainly my fault.
Fixes #1303
2013-04-13 12:31:22 -04:00
Daniel Lindsley
36dcce1a06
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-12 16:40:39 -07:00
Mike Helmick
ed0242ae3a
Fix Advanced docs Twitter Streaming example
...
Twitter API v1.1 Streaming now requires OAuth Authentication rather than XAuth.
I believe v1 is being blacked out sometime at the beginning of May.
2013-04-11 20:19:51 -04:00
Kenneth Reitz
eda4b55f7a
Merge pull request #1306 from pombredanne/patch-1
...
Updated NOTICE copyright from 2022 to 2012
2013-04-11 09:04:07 -07:00
pombredanne
6e3cfe5dd5
Updated NOTICE copyright from 2022 to 2012
...
Which is likely what you meant, eh?
2013-04-11 17:08:27 +03:00
Sorin Sbarnea
fb49481ddf
Updated documentation indicating that logging is done via requests.packages.urllib3 instead of requests.
...
modified: docs/api.rst
2013-04-10 16:46:05 +01:00
Sorin Sbarnea
17ecb6891c
* Documented the logging, requested in #1297
...
* Added build directory and *.egg to .gitignore
* Added sphinx as setup requirement in order to be able to build documentation with `pyhton setup.py build_sphinx`
modified: .gitignore
modified: docs/api.rst
modified: setup.py
2013-04-10 16:15:28 +01:00
schlamar
4c3432b759
Fix test with StringIO.
2013-04-10 08:24:33 +02:00
schlamar
59f916ca4a
Use streaming decompression feature of urllib3.
2013-04-10 08:08:33 +02:00
schlamar
6d6252aa9f
Update urllib3 to 71f84f9.
2013-04-10 08:00:36 +02:00
Kenneth Reitz
2426eeb371
Merge pull request #1298 from Lukasa/adapter_doc
...
Transport Adapter Docs
2013-04-09 13:17:19 -07:00