module documentation

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

Class ​Session A Requests session.
Class ​Session​Redirect​Mixin 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 Session for context-management.
def merge_hooks(request_hooks, session_hooks, dict_class=OrderedDict):

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):
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():

Returns a Session for context-management.

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