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
Kenneth Reitz
5708fe9565
python 2.5 fix
2011-05-14 23:21:58 -04:00
Kenneth Reitz
c40deefb8a
cleanup mess
2011-05-14 23:03:31 -04:00
Kenneth Reitz
cd8ce63a3b
Custom RedirectHandler and .history support.
...
Closes #23
2011-05-14 23:01:13 -04:00
Kenneth Reitz
35beda21b8
pass things into the dict
2011-05-14 22:02:14 -04:00
Kenneth Reitz
85b8b2bd44
CaseInsensitiveDict for Headers
2011-05-14 22:02:07 -04:00
Kenneth Reitz
29aa7736ca
Headers: Default to None
2011-05-14 21:52:33 -04:00
Kenneth Reitz
e8ff405fce
remote async __all__
2011-05-14 21:50:41 -04:00
Kenneth Reitz
5172d24e66
New CaseInsensitiveDict
2011-05-14 21:50:25 -04:00
Kenneth Reitz
fa1db95814
Version bump: v0.3.4
2011-05-14 14:30:36 -04:00
Kenneth Reitz
8ba12ff4f3
cleaner patch names
2011-05-14 14:24:12 -04:00
Kenneth Reitz
14ef462263
package refactor
2011-05-14 14:21:42 -04:00
Kenneth Reitz
1421ffa32a
HTTP Basic recursion. Fixes #31
2011-05-14 14:02:36 -04:00
Kenneth Reitz
b1e28c7fd8
Added Megan Emurayama to authors
2011-05-14 13:04:49 -04:00
megane murayama
1971bdbe67
fix for post non-dict data
2011-05-12 12:50:09 -04:00
Kenneth Reitz
912f48eece
slight refactor
2011-05-12 10:12:04 -04:00
Kenneth Reitz
86fb0cb235
Merge https://github.com/jgorset/requests into develop
2011-05-12 10:09:00 -04:00
Johannes Gorset
23ee58d6ec
Encode both keys and values for incoming unicode data as UTF-8, coincidentally fixing a bug that caused UTF-8 encoded byte strings to be encoded twice and causing an UnicodeDecodeError.
2011-05-12 10:27:41 +02:00
Kenneth Reitz
01b22a7e12
version bump
2011-05-12 04:02:06 -04:00
Kenneth Reitz
a046a04aa2
Merge branch 'feature/timeout' into develop
2011-05-12 03:56:13 -04:00
Kenneth Reitz
b6f6048cff
Encode incoming data.
...
Closes #27 .
2011-05-12 03:14:09 -04:00
Johannes
77f4b8a75e
Implement settings context manager
2011-04-21 18:38:33 +02:00
Johannes
d93731213a
Implement optional timeout for request functions
2011-04-21 14:54:30 +02:00