Package ndg :: Package saml :: Package utils :: Module m2crypto :: Class HTTPSConnection
[hide private]

Class HTTPSConnection

source code


Modified version of M2Crypto equivalent to enable custom checks with the peer and timeout settings

Nested Classes [hide private]

Inherited from httplib.HTTPConnection: response_class

Instance Methods [hide private]
 
__init__(self, *args, **kw)
Overload to enable setting of post connection check callback to SSL.Connection
source code
 
connect(self)
Overload M2Crypto.httpslib.HTTPSConnection to enable custom post connection check of peer certificate and socket timeout
source code
 
putrequest(self, method, url, **kw)
Overload to work around bug with unicode type URL
source code

Inherited from M2Crypto.httpslib.HTTPSConnection: close, get_session, set_session

Inherited from httplib.HTTPConnection: endheaders, getresponse, putheader, request, send, set_debuglevel, set_tunnel

Inherited from httplib.HTTPConnection (private): _output, _send_output, _send_request, _set_content_length, _set_hostport, _tunnel

Class Variables [hide private]
M2Crypto.SSL.timeout defReadTimeout = SSL.timeout(sec= 20.)
default timeout for read operations
M2Crypto.SSL.timeout defWriteTimeout = SSL.timeout(sec= 20.)
default timeout for write operations

Inherited from M2Crypto.httpslib.HTTPSConnection: default_port

Inherited from httplib.HTTPConnection: auto_open, debuglevel, strict

Inherited from httplib.HTTPConnection (private): _http_vsn, _http_vsn_str

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

Overload to enable setting of post connection check callback to SSL.Connection

type *args: tuple param *args: args which apply to M2Crypto.httpslib.HTTPSConnection type **kw: dict param **kw: additional keywords

Parameters:
  • postConnectionCheck (SSL.Checker.Checker derivative) - set class for checking peer
  • readTimeout (M2Crypto.SSL.timeout) - readTimeout - set timeout for read
  • writeTimeout (M2Crypto.SSL.timeout) - similar to read timeout
Overrides: httplib.HTTPConnection.__init__

connect(self)

source code 

Overload M2Crypto.httpslib.HTTPSConnection to enable custom post connection check of peer certificate and socket timeout

Overrides: httplib.HTTPConnection.connect

putrequest(self, method, url, **kw)

source code 

Overload to work around bug with unicode type URL

Overrides: httplib.HTTPConnection.putrequest