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
Riyad Parvez
5c92c72e2c
removed deprecated while 1:
2013-10-05 09:59:47 +06:00
Andrew Barnert
af4fb8cedc
Accept per-file headers in multipart file POST messages.
...
- Each file in the `files` argument can now be a 4-tuple, instead of
just a file, 2-tuple, or 3-tuple. If it is, the last value in the
tuple is a dictionary of extra headers.
2013-09-30 17:07:13 -07:00
daftshady
1d1831ba40
fixed extra bonus bug
2013-09-27 22:17:40 +09:00
Kenneth Reitz
54ad646067
merge 2.0 insto master
2013-09-24 14:13:28 -04:00
Kenneth Reitz
23ced527f7
Merge pull request #1503 from skastel/master
...
Fixing error return to be consistent with tuple return at the end of the method
2013-09-24 10:48:07 -07:00
Cory Benfield
61421843bc
Python defaults arguments are hard.
2013-09-13 14:10:09 +01:00
Kenneth Reitz
09c52e7282
Merge pull request #1537 from Lukasa/datetime
...
Allow non-string objects to be posted as data alongside files.
2013-08-21 11:46:27 -07:00
Cory Benfield
f44b86e039
Allow non-string objects to be data with files
2013-08-17 07:27:58 +01:00
Paul Matthews
61617e74ed
Raise an error for unsupported hook event
...
* Raises a ValueError for an unsupported hook event
2013-08-12 15:27:17 +01:00
Stephen Huenneke
9dd823c289
Raising ValueError's when we're passed inconsistent POST data and files dict.
2013-08-06 11:04:03 -07:00
Cory Benfield
a5e5a51fb4
Catch UnsupportedOperation.
2013-08-03 19:24:23 +01:00
Kenneth Reitz
abfb38bd57
Merge pull request #1508 from dieterv/master
...
remove duplicate comment
2013-07-31 18:36:07 -07:00
Kenneth Reitz
1a6637c285
Merge branch 'keytype' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:25:57 -04:00
Kenneth Reitz
d5a8816926
Merge pull request #1498 from Lukasa/incompleteread
...
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-31 18:23:14 -07:00
Kenneth Reitz
6b13ecdc85
Merge pull request #1501 from sigmavirus24/remove_setting_of_hooks
...
Fix duplication of efforts caught by @dofelw
2013-07-31 18:22:58 -07:00
Robert Estelle
0ab7a52f7c
Merge settings when creating PreparedRequest, don't copy Request.
2013-07-31 13:42:02 -07:00
Dieter Verfaillie
852de116dd
remove duplicate comment
...
This is already mentioned at line 357...
2013-07-31 09:29:24 +02:00
Robert Estelle
ee90f0af60
Shallow copy of Request fields in Request.copy()
...
This prevents e.g. modifying the headers of a copied request from
affecting the headers of its source and vice versa. Copying is used with
the intent to mutuate, so allowing this kind of mutation of fields makes
sense.
Is a deep copy better?
2013-07-30 22:59:53 -07:00
Robert Estelle
b5c136152f
Prepare requests with session settings separately from sending.
2013-07-30 21:39:36 -07:00
Stephen Huenneke
f75ee9fb6e
Making sure we check for str/unicode.
2013-07-29 14:42:47 -07:00
Stephen Huenneke
8d9d9fb064
Fixing error return to be consistent with tuple return at the end of the method.
2013-07-29 13:31:06 -07:00
Cory Benfield
7de6b1e162
Instantiate the CID directly.
...
No need to do this the slow way now. Thanks to Colin (@cdunklau) for the
idea.
2013-07-29 14:52:44 +01:00
Cory Benfield
f5775594cc
Header keys should be native strings.
...
This commit follows a discussion on IRC. For more information, see the
Pull Request associated with it.
2013-07-29 14:52:44 +01:00
Ian Cordasco
37786613e0
Fix duplication of efforts caught by @dofelw
2013-07-29 08:09:07 -05:00
Cory Benfield
79f3e69f5e
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-28 07:42:17 +01:00
Cory Benfield
9473f15909
Merge pull request #1494 from Lukasa/close
...
Document the Response.close() method.
2013-07-27 23:04:34 -07:00
Kenneth Reitz
77bd9c4a9d
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
...
[2.0] Add copy method to PreparedRequest objects
2013-07-26 18:16:00 -07:00
Cory Benfield
f401287afb
Document the Response.close() method.
2013-07-25 19:10:42 +01:00
David Pursehouse
4f64938ff0
Fix a few warnings flagged by PyDev
...
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
2013-07-22 17:14:45 +09:00
Ian Cordasco
b84547d786
Add copy method to PreparedRequest objects
2013-07-20 17:08:35 -04:00