Commit Graph

565 Commits

Author SHA1 Message Date
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 c18e6459a8 v0.9.3 2012-01-18 21:56:33 -05:00
Kenneth Reitz 6db255d17d Merge branch 'develop' of github.com:kennethreitz/requests into develop 2012-01-18 21:49:25 -05:00
Kenneth Reitz f3ba022f46 Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into develop 2012-01-18 21:05:56 -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
Ben e38046e6c6 The async.send method wasn't really doing anything useful. It was just calling the r.send() method of the Request object 'r'. It took an optional kwarg pools, and assigned it to r._pools which isn't used by anything. This situation was eaither broken or not fully implemented yet. I modified async.map to call r.send rather than send(r) and then modified async.send to actually make use of the pool that it is passed. 2012-01-17 15:21:09 -06:00
Ben 97be9ee4cd The async.send method wasn't really doing anything useful. It was just calling the r.send() method of the Request object 'r'. It took an optional kwarg pools, and assigned it to r._pools which isn't used by anything. This situation was eaither broken or not fully implemented yet. I modified async.map to call r.send rather than send(r) and then modified async.send to actually make use of the pool that it is passed. 2012-01-17 15:20:52 -06:00
Ben c658b363e3 The async.send method wasn't really doing anything useful. It was just calling the r.send() method of the Request object 'r'. It took an optional kwarg pools, and assigned it to r._pools which isn't used by anything. This situation was eaither broken or not fully implemented yet. I modified async.map to call r.send rather than send(r) and then modified async.send to actually make use of the pool that it is passed. 2012-01-17 15:17:38 -06: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
Kenneth Reitz df0dc2b67a +1 2012-01-15 16:39:46 -05:00
Frank Kumro 0536e5b708 Added prefetch documentation for api 2012-01-12 22:16:31 -05:00
Tom Moertel 79f5d532c6 Fix bug in HTTP-digest auth w/ URI having query string 2012-01-10 18:18:54 -05:00
Kenneth Reitz 6af6a08b7a Merge pull request #344 from sharat87/patch-1
Do not pass over the `session` argument to `Session.request` method
2012-01-10 11:11:01 -08:00
Kenneth Reitz 11e5126454 Merge pull request #347 from LucianU/patch-1
Printing the entire traceback, instead of just a warning, when an except...
2012-01-10 11:08:53 -08:00
Piotr Dobrogost bbbeedb0a2 fixes issue #349 2012-01-10 16:47:21 +01:00
Lucian Ursu 86eba21b8a Printing the entire traceback, instead of just a warning, when an exception is encountered 2012-01-10 12:10:58 +02:00
Shrikant Sharat Kandula 53d679edba The request method of Session class does not take a session argument. But api.request does. So, it has to be popped before you can send the whole kwargs dict to Session.request method. 2012-01-09 11:16:54 +05:30
Kenneth Reitz 14e8eea0ee Merge remote-tracking branch 'origin/develop' into develop 2012-01-07 17:18:53 -05:00
Kenneth Reitz 2b849545ea urllib3 update 2012-01-07 17:18:49 -05: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 638532dd9a v0.9.1 2012-01-06 01:10:53 -05: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
Kenneth Reitz 49140d6880 2012 2012-01-01 00:44:20 -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 7fdb541e2d make it true 2011-12-28 04:48:27 -05:00
Kenneth Reitz 8aa015ffc9 v0.8.9 2011-12-28 04:26:23 -05:00
Kenneth Reitz 9fcfec18da ssl docs 2011-12-28 03:18:40 -05:00
Kenneth Reitz a83268b01b v0.8.8 release 2011-12-28 03:01:36 -05:00
Kenneth Reitz f7e67c01ea only use session verify when not modified 2011-12-28 02:57:36 -05:00
Kenneth Reitz 544a5fea59 more info 2011-12-28 02:51:49 -05:00
Kenneth Reitz 0a8bb2e1b3 verification support in sessions 2011-12-28 02:51:42 -05:00
Kenneth Reitz 5184f0c5a9 SSL support! 2011-12-28 02:43:13 -05:00
Kenneth Reitz 9a1a4136ac new SSLError 2011-12-28 02:43:03 -05:00
Kenneth Reitz ca26c1a253 api cleanup 2011-12-28 02:42:57 -05:00
Kenneth Reitz a91ac242f3 simplify api.request 2011-12-28 01:51:26 -05:00
Kenneth Reitz bdda99c0c1 urllib3 update 2011-12-27 23:14:54 -05:00
Kenneth Reitz 0bfc029b5e v0.8.7 2011-12-24 03:16:40 -05:00
Kenneth Reitz 4eb2759400 force safe mode for async 2011-12-24 03:06:13 -05:00