Package ndg :: Package httpsclient :: Module utils :: Class Configuration
[hide private]

Class Configuration

source code


Connection configuration.

Instance Methods [hide private]
 
__init__(self, ssl_context, debug=False, proxies=None, no_proxy=None, cookie=None, http_basicauth=None, headers=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ssl_context, debug=False, proxies=None, no_proxy=None, cookie=None, http_basicauth=None, headers=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • ssl_context (OpenSSL.SSL.Context) - SSL context to use with this configuration
  • debug (bool) - if True, output debugging information
  • proxies (dict with basestring keys and values) - proxies to use for
  • no_proxy (basestring) - hosts for which a proxy should not be used
  • cookie (cookielib.CookieJar) - cookies to set for request
  • http_basicauth (tuple of (username,password)) - http authentication, or None
  • headers (dict) - http headers
Overrides: object.__init__