Skip to content
Myr

Expand on chunk length

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

authored by Cory Benfield · committed by Cory Benfield · parent 84cc360 · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:docs/user/advanced.rst+2 added-1 removed
276 unmodified lines
277For chunked encoded responses, it's best to iterate over the data using278:meth:`Response.iter_content() <requests.models.Response.iter_content>`. In279an ideal situation you'll have set ``stream=True`` on the request, in which280case you can iterate chunk-by-chunk by calling ``iter_content`` with a chunk281size parameter of ``None``.281size parameter of ``None``. If you want to set a maximum size of the chunk,282you can set a chunk size parameter to any integer.283284285.. _multipart:286
531 unmodified lines