Skip to content
Myr

clearly describe `r.raw` in Body Content Workflow

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

authored by homm · committed by homm · parent 10b6d77 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:docs/user/advanced.rst+1 added-1 removed
159 unmodified lines
160 if int(r.headers['content-length']) < TOO_LONG:161 content = r.content162 ...163164You can further control the workflow by use of the :class:`Response.iter_content` and :class:`Response.iter_lines` methods.164You can further control the workflow by use of the :class:`Response.iter_content` and :class:`Response.iter_lines` methods. Also you can read undecoded body from the underlying urllib3 :class:`urllib3.HTTPResponse` at :class:`Response.raw`.165166167Keep-Alive168----------
426 unmodified lines
modified:docs/api.rst+1 added-1 removed
145 unmodified lines
146.. _requests-kerberos: https://github.com/requests/requests-kerberos147148* The parameter for streaming requests was changed from ``prefetch`` to149 ``stream`` and the logic was inverted. In addition, ``stream`` is now150 required for chunked response reading.150 required for raw response reading.151152 ::153154 # in 0.x, passing prefetch=False would accomplish the same thing
41 unmodified lines