Josh Schneier
47d0517d66
handle urllib3 api changes; closes #2045
2014-07-29 23:29:21 -04:00
Roman Levin
9eab9f7415
Handle socket errors in iter_content
2014-07-24 23:00:50 +02:00
Eric L Frederich
c3444f8c7a
don't make duplicate requests for permanent redirects
2014-06-12 08:25:21 -04:00
Eric L Frederich
ec3a2e6f04
rename resume/resume_incomplete to permanent_redirect according to rfc7238
...
Use temporary_redirect intead of temporary_moved to make the words
line up nicely ;-)
2014-06-11 11:08:10 -04:00
Eric L Frederich
07d9b730b7
handle 308 redirection the same as 301 and 302
2014-06-10 16:30:17 -04:00
David Gouldin
32f600b083
Allow copying of PreparedRequests without headers/cookies
2014-05-30 10:11:53 -07:00
Ian Cordasco
5ab79e2514
Remove unnecessary check for builtin_str
2014-05-28 08:17:18 -05:00
Ian Cordasco
3faff0b8ea
Check for basestring, not just str
...
Fixes #2071
2014-05-27 20:29:44 -05:00
Cory Benfield
3346ad1134
Document and initialise Response.request
2014-05-26 16:40:45 +01:00
kennethreitz
569cd23c00
Merge pull request #1937 from jaraco/master
...
Improved decoding support for Response.iter_content and iter_lines
2014-05-12 15:04:35 -04:00
Cory Benfield
142b26ea7b
Clearer description of Response.close().
2014-04-28 19:42:30 +01:00
Feng Liu
24819e8aae
support request tuple data
...
rewrite the TestModels
Ajust the code
2014-03-27 10:41:49 +08:00
Cory Benfield
ee7fe02953
Ensure that .raw() is present after unpickling.
...
Some people will assume that .raw() is present, and they shouldn't get
AttributeErrors when they make that assumption on a pickled Response.
However, @kennethreitz has asked that we not be too dependent on
urllib3. For that reason, set to None.
2014-03-12 18:34:43 +00:00
Jason R. Coombs
d289eb22f1
Always honor decode_unicode, even when _content is present.
...
--HG--
extra : amend_source : 25977a1227b163d49bf2e1aec6aa448e5cd3be8a
2014-03-04 16:33:40 -05:00
Jason R. Coombs
c8226f69e1
Add documentation about decode_unicode.
2014-03-04 16:27:13 -05:00
Zack Weinberg
0caa243212
New Response property, .is_redirect.
2014-02-13 14:27:42 -05:00
kennethreitz
1371e81944
Merge pull request #1900 from mjpieters/issue1674-json-fallback-encoding
...
Reinstate falling back to self.text for JSON responses
2014-02-11 11:55:20 -05:00
kennethreitz
a44910b837
Merge pull request #1902 from mjpieters/master
...
Remove unused loggers.
2014-02-06 18:32:41 -08:00
Martijn Pieters
3443c177a3
Document the Response.reason attribute.
...
Made `.status_code` and `.reason` consistent with one another, adding some examples. Addresses #1225 .
2014-02-05 17:29:09 +00:00
Martijn Pieters
488b90f5ac
Remove unused loggers.
2014-02-03 13:43:59 +00:00
Martijn Pieters
c5b6a107eb
One last Charade reference to remove here.
2014-02-03 13:39:21 +00:00
Martijn Pieters
f35838beb6
Remove logging and charade mention.
...
Logging is Not Allowed, so out it goes.
2014-02-03 13:37:57 +00:00
Martijn Pieters
5ee8b348eb
Reinstate falling back to self.text for JSON responses
...
A JSON response that has no encoding specified will be decoded with a detected UTF codec (compliant with the JSON RFC), but if that fails, we guessed wrong and need to fall back to charade character detection (via `self.text`). Kenneth removed this functionality (by accident?) in 1451ba0c6d , this reinstates it again and adds a log warning.
Fixes #1674
2014-02-03 12:00:14 +00:00
Kenneth Reitz
c6084704cc
what is wrong with you people? :)
2014-01-31 12:31:11 -05:00
Kenneth Reitz
2b23d6a9f7
omg never do this again ever please
2014-01-31 12:30:52 -05:00
Kevin Burke
4c11fb7f04
s/soley/solely
2014-01-25 00:20:10 -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
Cory Benfield
4a6a0c3c65
Update docs to highlight the value of r.encoding.
2013-12-20 09:15:12 +00:00
daftshady
aad828704d
Re-raise DecodeError
2013-12-19 18:02:56 +09:00
Ian Cordasco
9379a14cb4
Fix all remaining references to charade
2013-12-18 08:43:18 -06:00
Ian Cordasco
e8bdcdb0a7
Address feedback from #1729
...
- Make the PreparedRequest's cookie jar an implementation detail
2013-12-04 06:45:18 -06:00
Chase Sterling
8bfe0d873f
Store the request cookiejar in PreparedRequest.cookies fix #1728
...
Conflicts:
requests/sessions.py
2013-12-04 06:38:58 -06:00
kennethreitz
af921c7f51
Merge pull request #1733 from ionrock/pickleable-responses
...
Response and Request objects are pickleable.
2013-11-20 01:01:26 -08:00
Jayson Vantuyl
b149be5d86
loosen URL handling for non-native URL schemes
2013-11-15 01:25:32 -08:00
Eric Larson
512beb8795
Response and Request objects are pickleable.
...
Includes a basic test. More could be add to confirm known attributes
that could cause problems.
2013-11-06 20:01:27 -06:00
Cory Benfield
9ffcbb82a2
Capitalisation.
2013-11-01 11:14:05 +00:00
Cory Benfield
20f8027641
Chardet -> charade.
2013-11-01 09:20:22 +00:00
Kenneth Reitz
0228851f19
Revert "Merge pull request #1710 from jvantuyl/master"
...
This reverts commit a8300c0ae6 , reversing
changes made to 2e196be143 .
2013-10-30 15:32:19 -04:00
Jayson Vantuyl
a9ec28a1b4
don't prepare URLs for oddball schemes
2013-10-30 10:04:43 -07:00
kennethreitz
6e52b5fe41
Merge pull request #1689 from Lukasa/unicode
...
Use builtin_str for all auto-set header values.
2013-10-24 07:38:52 -07:00
kennethreitz
52fe3f790e
Merge pull request #1693 from kevinburke/schema-message
...
Add clarification to MissingSchema error
2013-10-24 07:35:40 -07:00
Can Ibanoglu
76be17b00a
Deleted the extra word in PreparedRequest.prepare's docstring
2013-10-23 00:15:41 +03:00
Kevin Burke
b5d2160ef8
use .format()
2013-10-20 10:17:54 -07:00
Kevin Burke
333ac101ba
Add clarification to MissingSchema error
2013-10-20 00:46:41 -07:00
Cory Benfield
8a42d5fb41
Use builtin_str for all auto-set header values.
2013-10-18 18:34:29 +01:00
kennethreitz
65ec319f01
Merge pull request #1673 from daftshady/dev
...
fixed typo
2013-10-15 02:47:55 -07:00
daftshady
17dd3c0a76
fixed typo
2013-10-15 18:33:51 +09:00
Cory Benfield
bea2060182
'or content' does us no good.
2013-10-12 21:05:34 +01:00
kennethreitz
318ca102cd
Merge pull request #1635 from daftshady/dev
...
Fixed #1630 and added test case.
2013-10-07 16:22:49 -07:00
kennethreitz
3246fc088a
Merge pull request #1640 from abarnert/master
...
Accept per-file headers in multipart file POST messages.
2013-10-07 16:21:16 -07:00