Skip to content
Myr

Merge remote-tracking branch 'origin/develop' into develop

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 463ca76, f58ab8b · Browse files · 3 files+8 added−4 removed
This commit

State

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

Diff stats

3 files+8 added−4 removed

  • other:+8 added−4 removed

3 files+8 added−4 removed

modified:docs/user/advanced.rst+3 added-1 removed
78 unmodified lines
79----------8081Excellent news — thanks to urllib3, keep-alive is 100% automatic within a session! Any requests that you make within a session will automatically reuse the appropriate connection!8283Note that connections are only released back to the pool for reuse once all body data has been read; be sure to either set ``prefetch`` to ``True`` or read the ``content`` property of the ``Response`` object.8485If you'd like to disable keep-alive, you can simply set the ``keep_alive`` configuration to ``False``::8687 s = requests.session()88 s.config['keep_alive'] = False
34 unmodified lines
123 [<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]124125.. admonition:: Throttling126125 The ``map`` function also takes a ``size`` parameter, that specifies the nubmer of connections to make at a time::127 The ``map`` function also takes a ``size`` parameter, that specifies the number of connections to make at a time::128129 async.map(rs, size=5)130131
126 unmodified lines
modified:docs/user/quickstart.rst+2 added-2 removed
314 unmodified lines
315The :class:`Response.history` list contains a list of the316:class:`Request` objects that were created in order to complete the request.317318If you're using GET, HEAD, or OPTIONS, you can disable redirection319handling with the ``disable_redirects`` parameter::319handling with the ``allow_redirects`` parameter::320321 >>> r = requests.get('http://github.com')321 >>> r = requests.get('http://github.com', allow_redirects=False)322 >>> r.status_code323 301324 >>> r.history325 []
44 unmodified lines
modified:AUTHORS.rst+3 added-1 removed
60 unmodified lines
61- Juan Riaza62- Ryan Kelly63- Rolando Espinoza La fuente64- Robert Gieseke65- Idan Gazit65- Idan Gazit66- Ed Summers67- Chris Van Horne