HTTP client wrapper around stdlib’s httplib module.
Module Contents
-
class couchpy.httpc.HttpSession(cache=None, timeout=None, max_redirects=5, retry_delays=[0], retryable_errors=frozenset([32, 100, 101, 102, 103, 104, 110, 111, 112, 113]), user_agent='couchpy')
-
__init__(cache=None, timeout=None, max_redirects=5, retry_delays=[0], retryable_errors=frozenset([32, 100, 101, 102, 103, 104, 110, 111, 112, 113]), user_agent='couchpy')
Initialize an HTTP client session.
- cache
- an instance with a dict-like interface or None to allow
HttpSession to create a dict for caching.
- timeout
- socket timeout in number of seconds, or None for no timeout
- retry_delays
- list of request retry delays.