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 Session for context-management. |
Properly merges both requests and session hooks.
This is necessary because when request_hooks == {'response': []}, the merge breaks Session hooks entirely.
dict_class
Returns a Session
for context-management.
~requests.sessions.Session
to create a session. This may be removed at a future date.Returns | |
Session | Undocumented |