Package couchdb :: Module http :: Class Session

Class Session

object --+
         |
        Session

Instance Methods
 
__init__(self, cache=None, timeout=None, max_redirects=5)
Initialize an HTTP client session.
 
request(self, method, url, body=None, headers=None, credentials=None, num_redirects=0)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, cache=None, timeout=None, max_redirects=5)
(Constructor)

 
Initialize an HTTP client session.
Parameters:
  • cache - an instance with a dict-like interface or None to allow Session to create a dict for caching.
  • timeout - socket timeout in number of seconds, or None for no timeout
Overrides: object.__init__