module documentation

requests.sessions ~~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings across requests (cookies, auth, proxies).

Class Session A Requests session.
Class SessionRedirectMixin No class docstring; 6/6 methods documented
Function merge_hooks Properly merges both requests and session hooks.
Function merge_setting Determines appropriate setting for a given request, taking into account the explicit setting on that request, and the setting in the session. If a setting is a dictionary, they will be merged together using `dict_class`...
Function session Returns a :class:`Session` for context-management.
def merge_hooks(request_hooks, session_hooks, dict_class=OrderedDict): (source)

Properly merges both requests and session hooks. This is necessary because when request_hooks == {'response': []}, the merge breaks Session hooks entirely.

def merge_setting(request_setting, session_setting, dict_class=OrderedDict): (source)

Determines appropriate setting for a given request, taking into account the explicit setting on that request, and the setting in the session. If a setting is a dictionary, they will be merged together using `dict_class`

def session(): (source)

Returns a :class:`Session` for context-management. .. deprecated:: 1.0.0 This method has been deprecated since version 1.0.0 and is only kept for backwards compatibility. New code should use :class:`~requests.sessions.Session` to create a session. This may be removed at a future date. :rtype: Session