From: David Fischer Date: Sat, 2 Mar 2013 16:44:14 +0000 (-0800) Subject: Logic on streaming responses was changed in 1.0 X-Git-Tag: v1.2.0~33^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eba5ffe48add27bc677ae6421b8d6d98dd4f9ef;p=services%2Fpython-requests.git Logic on streaming responses was changed in 1.0 * prefetch=False in 0.x is now stream=True --- diff --git a/docs/api.rst b/docs/api.rst index a3c68a0..2309e93 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -142,12 +142,12 @@ API Changes .. _requests-kerberos: https://github.com/requests/requests-kerberos * The parameter for streaming requests was changed from ``prefetch`` to - ``stream``. In addition, the stream parameter is required for raw response - reading. + ``stream`` and the logic was inverted. In addition, ``stream`` is now + required for raw response reading. :: - # in 0.x, the "stream" parameter was called "prefetch" + # in 0.x, passing prefetch=False would accomplish the same thing r = requests.get('https://github.com/timeline.json', stream=True) r.raw.read(10)