Skip to content
Myr

Logic on streaming responses was changed in 1.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* prefetch=False in 0.x is now stream=True

authored by David Fischer · committed by David Fischer · parent 1d2ee52 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/api.rst+3 added-3 removed
140 unmodified lines
141.. _requests-oauthlib: https://github.com/requests/requests-oauthlib142.. _requests-kerberos: https://github.com/requests/requests-kerberos143144* The parameter for streaming requests was changed from ``prefetch`` to145 ``stream``. In addition, the stream parameter is required for raw response146 reading.145 ``stream`` and the logic was inverted. In addition, ``stream`` is now146 required for raw response reading.147148 ::149150 # in 0.x, the "stream" parameter was called "prefetch"150 # in 0.x, passing prefetch=False would accomplish the same thing151 r = requests.get('https://github.com/timeline.json', stream=True)152 r.raw.read(10)153154* The ``config`` parameter to the requests method has been removed. Some of
22 unmodified lines