Package M2Crypto :: Module m2urllib2 :: Class HTTPSHandler
[frames] | no frames]

Class HTTPSHandler




Instance Methods
 
__init__(self, ssl_context=None)
 
https_open(self, req)
Return an addinfourl object for the request, using http_class.
 
https_request(self, request)

Inherited from urllib2.AbstractHTTPHandler: do_open, do_request_, set_http_debuglevel

Inherited from urllib2.BaseHandler: __lt__, add_parent, close

Class Variables

Inherited from urllib2.BaseHandler: handler_order

Method Details

__init__(self, ssl_context=None)
(Constructor)

 
Overrides: urllib2.AbstractHTTPHandler.__init__

https_open(self, req)

 

Return an addinfourl object for the request, using http_class.

http_class must implement the HTTPConnection API from httplib. The addinfourl return value is a file-like object. It also has methods and attributes including:

  • info(): return a mimetools.Message object for the headers
  • geturl(): return the original request URL
  • code: HTTP status code