Skip to content
Myr

Merge pull request #4387 from dave-shawley/clarify-docs

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

Clarify raw response reading in the quickstart.

authored by Cory Benfield · committed by GitHub · parents 6d69f94, 7cc3d8d · Browse files · 1 file+8 added−0 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+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:docs/user/quickstart.rst+8 added
187 unmodified lines
188download, the above is the preferred and recommended way to retrieve the189content. Note that ``chunk_size`` can be freely adjusted to a number that190may better fit your use cases.191192.. note::193194 An important note about using ``Response.iter_content`` versus ``Response.raw``.195 ``Response.iter_content`` will automatically decode the ``gzip`` and ``deflate``196 transfer-encodings. ``Response.raw`` is a raw stream of bytes -- it does not197 transform the response content. If you really need access to the bytes as they198 were returned, use ``Response.raw``.199200201Custom Headers202--------------203204If you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the
351 unmodified lines