Kenneth Reitz
b14a244ab4
simpler
2012-01-21 22:57:24 -05:00
Kenneth Reitz
2c7e920298
don't double decode
2012-01-21 22:56:53 -05:00
Kenneth Reitz
b725bfd3fb
Use chardet for detection when no encoding is provided.
2012-01-21 22:55:41 -05:00
Kenneth Reitz
70e98e47cf
No encoding? r.text is None.
2012-01-21 17:48:51 -05:00
Kenneth Reitz
8e6f98f44e
Merge branch 'redsea' into develop
2012-01-21 07:17:30 -05:00
Kenneth Reitz
a3b26c7e5b
Provide new register_hook system.
...
#372
2012-01-21 07:13:58 -05:00
Kenneth Reitz
efd2b57b92
cleanup docs for request defaults
2012-01-21 01:44:57 -05:00
Kenneth Reitz
47aba0cc20
remove is_error
2012-01-21 01:31:23 -05:00
Kenneth Reitz
f5a2b75924
only try to decode if self.encoding is set
2012-01-21 01:28:26 -05:00
Kenneth Reitz
49a38ac89a
New bytes/unicode separation.
...
Response.content for bytes.
New Response.text for unicode.
2012-01-21 01:24:21 -05:00
Johannes Gorset
b37fbf30a3
Decode response URL to a unicode string.
...
Fixes #182
2012-01-20 00:34:44 +01:00
Kenneth Reitz
61a0e85672
Merge pull request #364 from gthank/8efb6cc870bd23de0d8d87708217d818236a733f
...
Allow sessions and async requests to mix.
2012-01-19 11:12:23 -08:00
Kenneth Reitz
6db255d17d
Merge branch 'develop' of github.com:kennethreitz/requests into develop
2012-01-18 21:49:25 -05:00
Chase Sterling
d9cb18ad2a
Make sure verify=False is respected for session even when there has already been a verified request to the same host.
...
Update tests to expose the (fixed) problem.
2012-01-18 19:49:22 -05:00
Ronny Pfannschmidt
7f9cef0114
close the chunked fd at the end and honor content chunksizes for a potential first chunk
2012-01-17 18:14:47 +01:00
Hank Gay
8efb6cc870
Allow mixing sessions and async.
2012-01-17 11:44:59 -05:00
Ronny Pfannschmidt
1c8a141711
remove debug print
2012-01-17 17:39:37 +01:00
Ronny Pfannschmidt
4d38790b5b
even more evil, fixes my misstakes with chunked reading
2012-01-17 17:38:52 +01:00
Ronny Pfannschmidt
5cfbb0aaf5
insanity for chunked iteration
2012-01-17 13:16:09 +01:00
Ronny Pfannschmidt
29271a4100
make Response.iter_lines yield the pending buffer if its actually a complete line
2012-01-17 12:47:22 +01:00
Piotr Dobrogost
bbbeedb0a2
fixes issue #349
2012-01-10 16:47:21 +01:00
Ben Edwards
a25141f9f4
Fix syntax error in last commit.
2012-01-06 13:52:49 -07:00
Jonas Obrist
3415e6de0b
Give a more useful error message when the URL supplied does not contain a schema.
2012-01-06 16:20:33 +01:00
Kenneth Reitz
c6fc7d99b5
Merge branch 'develop' of https://github.com/gazpachoking/requests into develop
2012-01-06 01:08:06 -05:00
Bryan Helmig
459a91c54f
highway to the danger_mode
2012-01-05 12:50:44 -06:00
Bryan Helmig
115b51e68c
add eager mode for raising errors immediately
2012-01-04 22:08:01 -06:00
Chase Sterling
5174ab4325
Make sure newlines at chunk borders do not get dropped using iter_lines.
2012-01-03 00:38:59 -05:00
Chase Sterling
95911f059a
Refactor r.iter_lines to retrieve more than one byte at a time.
...
Fixes universal line ending handling, but takes away ability to specyfy
custom line endings.
2012-01-02 16:19:35 -05:00
Chase Sterling
9c6ffc5303
Refactor stream_decode_gzip and _deflate into one function, stream_decompress.
...
stream_decompress will now iterate over the raw data if there is a problem with decompression
Remove gzip decoding from Response.content, as urllib3 was doing it anyway.
2011-12-30 22:18:08 -05:00
Chase Sterling
f80984f377
Implement automatic deflating when using response.iter_content. refs #327
...
Refactor response.iter_lines to use responset.iter_content.
2011-12-30 18:55:56 -05:00
Kenneth Reitz
544a5fea59
more info
2011-12-28 02:51:49 -05:00
Kenneth Reitz
5184f0c5a9
SSL support!
2011-12-28 02:43:13 -05:00
Ori Livneh
e1615e0f1e
Make safe_mode handle exceptions more consistently
2011-12-23 16:14:46 -05:00
Ori Livneh
716d29c49c
fix iteration on null responses in safe_mode
2011-12-22 21:10:43 -05:00
Ori Livneh
a7223f86a9
Undo stupid change to while loop
2011-12-22 17:51:22 -05:00
Ori Livneh
2c0ff95d4d
Revert "Revert "Make safe_mode play nice with timeout ( fixes #312 )""
...
This reverts commit 91766548d1 .
2011-12-22 17:50:43 -05:00
Ori Livneh
91766548d1
Revert "Make safe_mode play nice with timeout ( fixes #312 )"
...
This reverts commit 805c4db55413c96c5d6e0f95560119c000f660c9.
2011-12-22 17:42:57 -05:00
Ori Livneh
12f3c65e5a
Make safe_mode play nice with timeout ( fixes #312 )
2011-12-22 16:52:29 -05:00
Kenneth Reitz
f5e421e880
1 instead of True
...
#313
2011-12-22 11:55:55 -05:00
Ori Livneh
f214b91d77
fix bug that causes iter_lines to truncate content
...
Currently, if the response does not terminate with a newline, iter_lines
truncates the trailing remainder.
2011-12-20 02:01:37 -05:00
Christopher Davis
4e2ecd6987
Fixed some tab/spaces mixed issues
2011-12-17 13:48:40 -06:00
Christopher Davis
814e0520ad
Add Proxy Authorization support
2011-12-17 13:40:04 -06:00
Kenneth Reitz
6fb2674446
iter_lines!
2011-12-14 10:37:40 -05:00
Kenneth Reitz
fad9abfd77
Merge remote-tracking branch 'origin/develop' into develop
2011-12-11 11:26:16 -05:00
Kenneth Reitz
a5f79712bb
Fix for #303
2011-12-11 11:26:13 -05:00
Nick Hatch
a6412b02ba
Fix spelling errors, typos.
2011-12-11 01:58:55 -06:00
Kenneth Reitz
c7b99f7819
Set Response.sent to True
...
Fixes #291
2011-11-27 11:29:52 -05:00
Kenneth Reitz
a7a619ba5c
Merge branch 'auth_callables' of https://github.com/idangazit/requests into develop
...
Conflicts:
requests/models.py
2011-11-26 10:14:14 -05:00
Robert Gieseke
8ae4b440e3
Display full URL when logging.
2011-11-20 10:14:51 +01:00
Idan Gazit
1933d3c707
Added support for HTTP Basic Auth credentials in 2-tuple
2011-11-19 23:59:27 +02:00