Dmitry Medvinsky
c4f9340fb4
Add ability to pass response to HTTPError()
...
Just a little refactoring, but it seems nicer to me to be able to pass
the response when constructing the `HTTPError` instance instead of
constructing it and then changing the member variable.
2013-03-03 10:05:42 +04:00
sprt
b80f8aa475
URLError doesn't exist anymore
2013-03-01 20:20:53 +01:00
Ian Cordasco
be62645dd5
Revert "If Content-Length is already set.."[1]
...
This reverts commit 544d08d0f6 .
[1]"If Content-Length is already set, don't over ride it"
2013-02-25 09:29:05 -05:00
Kenneth Reitz
cdec20af65
Merge pull request #1181 from denis-ryzhkov/master
...
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-12 08:43:02 -08:00
Denis Ryzhkov
56f4b7ca68
Deleted is_py2 check from unicode_header_name fix thanks to Lukasa.
2013-02-12 09:51:46 +03:00
Piotr Dobrogost
4c8d1b9a7d
removed no longer used redirect codes from models
...
added numeric values of redirect codes in comments
2013-02-11 23:07:12 +01:00
Denis Ryzhkov
6da7e22a4a
Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
2013-02-11 15:37:58 +03:00
Ian Cordasco
544d08d0f6
If Content-Length is already set, don't override
...
Re: #1159
2013-02-01 11:58:23 -05:00
Cory Benfield
2f7923bc05
More useful docstring.
2013-01-28 18:35:41 +00:00
Cory Benfield
2ac3913733
Make Response objects iterable.
2013-01-28 18:35:41 +00:00
Kenneth Reitz
25545b393b
Merge pull request #1146 from oczkers/master
...
It`s more pep8 now
2013-01-27 19:11:15 -08:00
Chris Lee
318300848f
Use timedelta and change attribute name back to elapsed
2013-01-27 19:07:48 -08:00
Chris Lee
d4aaef1e9a
Time how long each request takes
...
Stored as attribute Response.time_taken
2013-01-27 19:06:50 -08:00
oczkers
40a060cf57
it`s more pep8 now
2013-01-27 02:04:12 +01:00
Kenneth Reitz
9d1d927420
Merge pull request #1103 from dmckeone/master
...
Restore the ability to use a list of 2-tuples for the data keyword argument with requests.post.
2013-01-25 21:02:01 -08:00
Johnny Goodnow
8d8865aadb
Remove Content-Length from GET/HEAD by default.
...
Now, Content-Length is only auto-added for non-GET/HEAD requests.
2013-01-25 20:50:58 -08:00
Johnny Goodnow
f7c10ca74d
Always add Content-Length to HTTP PATCH.
2013-01-25 12:07:24 -08:00
Johnny Goodnow
44b1e7ebea
Remove default Content-Length from GET requests.
...
Fix #1051 .
2013-01-24 21:13:32 -08:00
sprt
ab2e7df8a9
Merge branch 'master' of git://github.com/kennethreitz/requests
...
Conflicts:
test_requests.py
2013-01-24 18:36:53 +01:00
Scott Burns
2bcc4a774a
Pass kwargs to json.loads
...
Not all JSON is created equally. This commit
addresses when users want to take control of the
json decode process.
2013-01-23 15:25:48 -06:00
Ian Cordasco
1cfe59299b
Only call the hook once.
2013-01-23 11:51:37 -05:00
Ian Cordasco
e771aa9386
Comment & replace something that keeps disappearing
2013-01-23 11:28:30 -05:00
sprt
cc7bee19f0
Refactor prepare_hooks()
2013-01-23 15:45:44 +01:00
sprt
c4ad8afba9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
requests/sessions.py
2013-01-23 14:42:45 +01:00
Kenneth Reitz
30573b2d8b
Merge pull request #1116 from Lukasa/master
...
Correct type of Content-Length headers.
2013-01-22 18:51:17 -08:00
Ian Cordasco
ca85b4ec6c
Tests pass this time.
2013-01-22 17:22:12 -05:00
Kenneth Reitz
3bf46609c8
Merge pull request #1097 from matthewlmcclure/issues/1096
...
Resolves the parts of #1096 in requests proper.
2013-01-22 05:11:14 -08:00
Cory Benfield
297aa04bea
Decrease default line length for iter_lines
2013-01-21 21:15:04 +00:00
Cory Benfield
89c8cbbe0c
Ensure Content-Length is a string.
2013-01-19 12:07:34 +00:00
David McKeone
35d4a47cb1
Allow passing POST data with a list of 2-tuples.
2013-01-16 11:53:24 -07:00
sprt
a721d590b4
Make hooks work with prepared requests
2013-01-12 21:46:44 +01:00
Matt McClure
628e393b9a
Resolves the parts of #1096 in requests proper.
2013-01-11 15:04:47 -05:00
Kenneth Reitz
1a7c91f658
Merge remote-tracking branch 'origin/master'
2013-01-10 02:13:06 -05:00
Kenneth Reitz
ef8563ab36
CHUNKED REQUESTS!
2013-01-10 01:58:29 -05:00
Vinod Chandru
20b10aed1b
Allow for third argument in file dict value to support explicit
...
file content type.
2013-01-09 19:29:28 -08:00
Kenneth Reitz
f0fe551dc9
thanks, @sigmavirus24
2012-12-23 01:45:49 -05:00
Kenneth Reitz
f8e2d0e732
api docs
2012-12-23 01:44:54 -05:00
Kenneth Reitz
3ddcc99131
docs update
2012-12-23 01:40:07 -05:00
Kenneth Reitz
70faca2a14
docs, cleanup for preparedrequest
2012-12-23 01:25:01 -05:00
Kenneth Reitz
5f9fecd3aa
prepared request docs
2012-12-23 01:21:02 -05:00
Kenneth Reitz
6e780fad6d
remove unused timeout
2012-12-23 01:16:00 -05:00
Kenneth Reitz
f8a59c3e6f
request docstrings
2012-12-23 01:14:22 -05:00
michaelwheeler
0b42772663
Fixed typo in comment.
2012-12-20 15:38:04 -05:00
Ib Lundgren
05de270d7a
Why auth must be prepared last
2012-12-19 21:30:11 +01:00
Ib Lundgren
7e594eb121
Swap prepare_auth and prepare_body
2012-12-19 21:04:50 +01:00
Ian Cordasco
68d394952a
A bit of linting.
...
Mostly removed a whole bunch of unused imports.
2012-12-17 20:19:11 -05:00
Eric Scrivner
8c01865d62
Remove unicode encoding for HTTP method.
2012-12-17 12:39:15 -08:00
Kenneth Reitz
c65a52a1d0
update
2012-12-17 08:36:58 -05:00
Kenneth Reitz
1451ba0c6d
update docs
2012-12-17 08:33:18 -05:00
Kenneth Reitz
0569fe44d8
new tests!
2012-12-17 08:09:52 -05:00