Package ndg :: Package httpsclient :: Module https :: Class HTTPSContextHandler
[hide private]

Class HTTPSContextHandler

source code


HTTPS handler that allows a SSL context to be set for the SSL connections.

Instance Methods [hide private]
 
https_request(self, request)
 
__init__(self, ssl_context, debuglevel=0) source code
 
https_open(self, req)
Opens HTTPS request
source code

Inherited from urllib2.AbstractHTTPHandler: do_open, do_request_, set_http_debuglevel

Inherited from urllib2.BaseHandler: __lt__, add_parent, close

Class Variables [hide private]

Inherited from urllib2.BaseHandler: handler_order

Method Details [hide private]

__init__(self, ssl_context, debuglevel=0)
(Constructor)

source code 
Parameters:
  • ssl_context (OpenSSL.SSL.Context) - SSL context
  • debuglevel (int) - debug level for HTTPSHandler
Overrides: urllib2.AbstractHTTPHandler.__init__

https_open(self, req)

source code 

Opens HTTPS request

Parameters:
  • req - HTTP request
Returns:
HTTP Response object