Skip to content
Myr

cross-references in documentation

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 · parent a0c3570 · Browse files · 1 file+3 added−6 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−6 removed

  • other:+3 added−6 removed

1 file+3 added−6 removed

modified:docs/user/advanced.rst+3 added-6 removed
41 unmodified lines
42.. admonition:: Remove a Value From a Dict Parameter4344 Sometimes you'll want to omit session-level keys from a dict parameter. To do this, you simply set that key's value to ``None`` in the method-level parameter. It will automatically be omitted.4546All values that are contained within a session are directly available to you:46All values that are contained within a session are directly available to you. See the:ref:`Session API Docs <sessionapi>` to learn more.4748 Session attibutes:49 ``auth``, ``config``, ``cookies``, ``headers``, ``hooks``, ``keep_alive``, ``params``, ``proxies``, ``timeout``48495250Configuring Requests51--------------------5253Sometimes you may want to configure a request to customize it's behavior. To do57this, you can pass in a ``config`` dictionary to a request or session.54this, you can pass in a ``config`` dictionary to a request or session. See the :ref:`Configuration API Docs <configurations>` to learn more.555657Keep-Alive58----------5963Excellent news — keep alive is 100% automatic within a session! Couldn't be easier.60Excellent 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!6162If you'd like to disable keep-alive, you can simply set the ``keep_alive`` configuration to ``False``::6364 s = requests.session()
169 unmodified lines