Commit Graph

301 Commits

Author SHA1 Message Date
Luca De Vitis 07dd324e2f Reverted hooks from sub-package to module. 2011-09-01 18:22:12 +02:00
Luca De Vitis d8c923c385 Added json_content and etree_content, more docs and comments. 2011-08-25 16:28:47 +02:00
Luca De Vitis 3bf6c63d52 Applied new hooks api 2011-08-25 16:26:10 +02:00
Luca De Vitis 335bf7018d default hooks copy fixed 2011-08-25 16:24:55 +02:00
Luca De Vitis d8fb6d2a5a No more sets in default hooks, code cleanup, more docs and comments. 2011-08-25 16:19:19 +02:00
Luca De Vitis c243d09398 Added gracefull_hooks, default_hooks and 'Accept-Encoding' base_header 2011-08-25 16:17:38 +02:00
Luca De Vitis 56406b3442 hooks now comply hook interface 2011-08-23 23:43:40 +02:00
Luca De Vitis 660e090315 Forgot to add the hooks sub-package 2011-08-23 23:39:07 +02:00
Luca De Vitis d12eac8669 * hooks is a package now.
* Added hooks.setup_hooks to setup multiple and default hooks
* Added hooks.response hooks to unicode encoding, and uncompress response.
* Modified hooks.dispatch_hooks api: don't need a key any more.
2011-08-23 23:30:50 +02:00
Luca De Vitis 2dc556e082 Added multiple hooks support. 2011-08-23 15:06:22 +02:00
Kenneth Reitz 317c5b693a _content 2011-08-21 07:12:54 -04:00
Kenneth Reitz c8110222a5 no need to set content
avoids 2.5 workaround
2011-08-21 07:01:29 -04:00
Den Shabalin 6a96652396 Refactor response.content into a property. This makes content attribute discoverable through dir(response) and also guards from errors like forgetting to raise AttributeError in __getattr__. Also you don't have to create fake self.content to fool Sphinx any more. 2011-08-21 11:57:03 +03:00
Kenneth Reitz 28ee9788a0 Request 2011-08-20 22:51:29 -04:00
Kenneth Reitz 596aceb185 big docs update 2011-08-20 22:47:03 -04:00
Kenneth Reitz 1f3e53b32e yay 2011-08-20 20:05:38 -04:00
Kenneth Reitz 13db806861 docstringin' it up 2011-08-20 20:04:11 -04:00
Kenneth Reitz d0fdf0eb38 no longer required 2011-08-20 19:59:41 -04:00
Kenneth Reitz c5d787d6fd cleanups 2011-08-20 19:59:21 -04:00
Kenneth Reitz 873d128c5a docstrings for utils module 2011-08-20 19:58:00 -04:00
Kenneth Reitz 7f35ec7665 r.fo bugfix 2011-08-20 19:52:18 -04:00
Kenneth Reitz 86cc274cf0 remote read/close methods from response 2011-08-20 19:49:23 -04:00
Kenneth Reitz c19b2c5172 settings.decode_unicode 2011-08-20 19:47:43 -04:00
Kenneth Reitz 4906686186 utils.decode_gzip 2011-08-20 19:46:50 -04:00
Kenneth Reitz f038ec3b6e may have multiple encoding values 2011-08-20 19:44:24 -04:00
Kenneth Reitz a609f726e6 settings.allow_unicode 2011-08-20 19:43:36 -04:00
Kenneth Reitz 21cd47d223 Merge branch 'feature/unicode' into feature/fo
Conflicts:
	AUTHORS
2011-08-20 19:30:46 -04:00
Kenneth Reitz 882ea76aa9 cleanups, response.fo 2011-08-20 19:26:56 -04:00
Kenneth Reitz 850e1c7d40 Merge branch 'develop' of https://github.com/janrito/requests into develop 2011-08-20 19:23:53 -04:00
Kenneth Reitz 8fbb1e6d97 move encoding methods into utils for external consumption 2011-08-20 19:17:41 -04:00
Kenneth Reitz 7fc8c7ccfd move encoding detection out of request object. 2011-08-20 19:17:25 -04:00
Kenneth Reitz 7eb272b299 Merge https://github.com/rickmak/requests into feature/unicode
Conflicts:
	requests/models.py
2011-08-20 18:42:18 -04:00
Kenneth Reitz 8b640979ee v0.6.1 2011-08-20 18:25:32 -04:00
Alejandro Giacometti 5f16a8a6b1 Added readline method to response object. 2011-08-20 23:05:39 +02:00
Kenneth Reitz abc5e27931 config max_redirects 2011-08-19 20:12:41 -04:00
Kenneth Reitz c75eaec852 integrate codes into models.py 2011-08-19 20:12:33 -04:00
Kenneth Reitz d9a349c1a1 303 status code 2011-08-19 20:12:16 -04:00
Kenneth Reitz 9d143ed653 Merge branch 'develop' of https://github.com/jerem/requests into feature/jerem 2011-08-19 19:58:24 -04:00
Den Shabalin 2f55393593 Fixes an issue #128: `Response not working with lxml''. This error happend due to lxml's attempt to do .geturl() call on the response object. __getattr__ didn't raise AttributeError so response.geturl'' returned None and response.geturl()'' resulted into `TypeError: 'NoneType' object is not callable'' seen in the issue. 2011-08-19 19:18:26 +03:00
Rick Mak d26f3333e4 Fix tried_encodings scope 2011-08-18 14:42:35 +08:00
Rick Mak 820e2c73e6 Import re 2011-08-18 14:22:54 +08:00
Kenneth Reitz 96e7a60b8d Allow any method, if so inclined
#124
2011-08-17 20:15:28 -04:00
Jérémy Bethmont c22b71fc5b Handle redirection without scheme. 2011-08-17 16:04:53 +02:00
Jérémy Bethmont a17110b32a Merge remote-tracking branch 'upstream/develop' into develop 2011-08-17 15:32:11 +02:00
Jérémy Bethmont 571d808d25 Fixed bad merge. 2011-08-17 15:31:24 +02:00
Armin Ronacher 91e75f7215 As proposed by @davidbgk this is only consistent with \o/ :) 2011-08-17 13:40:29 +03:00
Jérémy Bethmont fe109b27be Merge remote-tracking branch 'upstream/develop' into develop
Conflicts:
	requests/models.py
2011-08-17 10:07:43 +02:00
Kenneth Reitz 3f873dc222 hooks in api layer only 2011-08-17 04:05:20 -04:00
Kenneth Reitz e0ae2b4155 fixes 2011-08-17 04:03:54 -04:00
Kenneth Reitz 3f8f1dc00c cleaner defaults 2011-08-17 03:19:51 -04:00