File: sessions.rst

package info (click to toggle)
python-requests-toolbelt 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 876 kB
  • sloc: python: 3,653; makefile: 166; sh: 7
file content (23 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.. _sessions:

Specialized Sessions
====================

The toolbelt provides specialized session classes in the
:mod:`requests_toolbelt.sessions` module.

.. automodule:: requests_toolbelt.sessions
    :members:


BaseUrlSession
--------------

.. versionadded:: 0.7.0

Many people have written Session subclasses that allow a "base URL" to be
specified so all future requests need not specify the complete URL. To create
one simplified and easy to configure version, we've added the
:class:`requests_toolbelt.sessions.BaseUrlSession` object to the Toolbelt.

.. class:: requests_toolbelt.sessions.BaseUrlSession