CustomSession
- class app.util.requests.session.CustomSession[source]
Bases:
CacheMixin,LimiterMixin,SessionCustom session class that includes caching and rate limiting capabilities by default.

Inheritance Diagram for CustomSession
Methods
__init__(*args, **kwargs)request(*args, **kwargs)Attributes
headersA case-insensitive dictionary of headers to be sent on each
Requestsent from thisSession.authDefault Authentication tuple or object to attach to
Request.proxiesDictionary mapping protocol or protocol and host to the URL of the proxy (e.g. {'http': 'foo.bar:3128', 'http://host.name': 'foo.bar:4012'}) to be used on each
Request.hooksEvent-handling hooks.
paramsDictionary of querystring data to attach to each
Request.streamStream response content default.
verifySSL Verification default.
certSSL client certificate default, if String, path to ssl client cert file (.pem).
max_redirectsMaximum number of redirects allowed.
trust_envTrust environment settings for proxy configuration, default authentication and similar.
cookiesA CookieJar containing all currently outstanding cookies set on this session.
- request(*args, **kwargs) OriginalResponse | CachedResponse[source]
- Return type: