Commit Graph

173 Commits

Author SHA1 Message Date
Gulácsi Tamás 04c456b877 structures: little bit more general, lower-key-caching version of CaseInsensitiveDict 2011-07-23 22:16:12 +02:00
Jérémy Bethmont 891e52d723 Added the possibility to access headers without fetching the whole body (fixes #86). 2011-06-29 11:10:39 +02:00
Xu Pan d2ff0f40eb add doseq to urlencode in model._encode_params to enable list as dict value 2011-06-26 13:32:19 +08:00
Kenneth Reitz 6f08c81698 note about indns 2011-06-24 18:24:44 -04:00
Jérémy Bethmont 868cd3d1cb Implemented idna (fixes #76). 2011-06-24 12:21:25 +02:00
Kenneth Reitz 39edf7a7fa raise_for_status +URLError 2011-06-23 06:22:46 -04:00
Kenneth Reitz 162b751f6d Timeouts are normal errors now.
--
BREAK ALL TEH TESTS!
2011-06-21 22:40:27 -04:00
Kenneth Reitz 20aed5488b Release the v0.5.0! 2011-06-21 22:26:06 -04:00
Kenneth Reitz b4eac4c993 redirect fix 2011-06-21 22:00:04 -04:00
Kenneth Reitz b4a4f38cce verbose output stream support 2011-06-21 21:59:57 -04:00
Kenneth Reitz 00f066a467 PATCH support 2011-06-21 18:03:06 -04:00
moliware 3e7c682e66 Support for proxies 2011-06-19 22:36:50 +02:00
Richard Boulton 80d860d2d4 Allow POST and PUT requests to take both querystring params and request body
data.
2011-06-16 15:48:43 +01:00
Richard Boulton f31ade335d Change documentation comments for "params" and "data" parameters to refer to
the request body or the query string, as appropriate.  "GET parameters", "POST
data", etc aren't the ideal terminology to use - they come from common usage
with web browsers, rather than the HTTP specification, so are off-putting in
other contexts.
2011-06-16 15:40:14 +01:00
Richard Boulton 023ab755e5 Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding code 2011-06-16 13:35:33 +01:00
Richard Boulton 3d1444b829 Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries. 2011-06-16 03:18:47 -07:00
Kenneth Reitz 245c6edec3 todo 2011-06-15 22:56:14 -04:00
Kenneth Reitz cb0a96fbf3 Redirect chain flag default off. 2011-06-15 22:43:26 -04:00
Kenneth Reitz 54449483b6 Merge branch 'patch-1' of https://github.com/JNRowe/requests into develop 2011-05-27 08:00:22 -04:00
Kenneth Reitz 52bedf4c0b default post data to empty byte string
Refs #45
2011-05-27 07:59:28 -04:00
James Rowe 5962c0ea86 Subclass dict for CaseInsensitiveDict. 2011-05-27 00:17:44 -07:00
Johannes 9b2d7382bf Conform api.* arguments to api.request arguments.
Fixes #40.
Fixes #41.
2011-05-27 08:36:03 +02:00
Kenneth Reitz 3189d8690e refactor^2 2011-05-22 18:01:21 -04:00
Kenneth Reitz b51e042e73 Merge pull request #38 from jgorset/requests
---

Ive refactored `api.request`. I think. The new version is more robust in that it no longer accepts arbitrary arguments and raises an exception if one attempts to call it with both `params` and `data` (that should probably be supported, though, but thats a topic for another issue).

Conflicts:
	requests/api.py
2011-05-22 17:54:10 -04:00
Johannes 82f1320ed5 Refactor api.request 2011-05-22 23:49:29 +02:00
Kenneth Reitz 670c4aecdd version bump (v0.4.1) 2011-05-22 14:13:49 -04:00
Kenneth Reitz 0b36d925f6 remove debug print 2011-05-22 13:56:57 -04:00
Kenneth Reitz bc290f62d7 defaults 2011-05-22 13:55:13 -04:00
Kenneth Reitz c0faa9e79c new settings location 2011-05-22 13:31:17 -04:00
Kenneth Reitz f887906ec3 cleanup — comments 2011-05-22 13:31:09 -04:00
Kenneth Reitz 982fd9d803 new config module 2011-05-22 13:30:55 -04:00
Kenneth Reitz d64bf501d0 no import packages 2011-05-22 13:30:22 -04:00
Kenneth Reitz 49f1ec1efb settings -> config
reimpliment settings as singleton
2011-05-22 13:27:17 -04:00
Kenneth Reitz 3cdb777c23 restore allow_redirect behavior 2011-05-22 11:35:01 -04:00
Johannes 8aa6fabd4d Support relative redirects. Fixes #36 2011-05-22 11:41:15 +02:00
Kenneth Reitz 8d9bcefa9d Merge pull request #35 from jgorset/requests
---

Ive completed the migration of the requests settings to the new `settings` module, but my attempt to facilitate for manipulating settings outside of the context manager (eg. `requests.settings.timeout = 5`) has been thwarted by the namespace collision of the context manager and the module.

Im probably just being stupid. Youll figure it out.

Conflicts:
	requests/api.py
2011-05-21 13:04:32 -04:00
Kenneth Reitz e153b94190 Improved redirection behavior for 301/303 2011-05-21 12:44:58 -04:00
Johannes 7d0374df2f Slight refactor 2011-05-20 22:50:50 +02:00
Johannes 2f60748c73 Stop importing inspect 2011-05-20 20:45:51 +02:00
Johannes bbd58b922b Migrate settings to new module 2011-05-20 20:32:39 +02:00
Kenneth Reitz ba79a2eb97 new settings module 2011-05-20 12:54:42 -04:00
Johannes ef81c16611 Fix typos 2011-05-20 18:34:43 +02:00
Johannes c8cc2d0421 Relocate exceptions 2011-05-20 18:20:17 +02:00
Johannes a00dc1abf3 Raise Timeout on request timeouts 2011-05-20 18:17:46 +02:00
Johannes 59c747b793 Fix typos 2011-05-19 23:32:27 +02:00
Johannes Gorset baddc5b6ad Refactor Request#__init__ 2011-05-19 10:16:54 +02:00
Johannes Gorset ec5f227381 Refactor settings 2011-05-19 10:13:37 +02:00
Kenneth Reitz 6e13e7343d Big API update 2011-05-16 01:13:05 -04:00
Kenneth Reitz 51360e1ede version bump 2011-05-14 23:57:53 -04:00
Kenneth Reitz 3cec61481c ignore http errors in redirect loops 2011-05-14 23:22:26 -04:00