Package httxlib :: Module httxs :: Class HTTPSxTunneled
[hide private]
[frames] | no frames]

Class HTTPSxTunneled

source code

httplib.HTTPConnection --+        
                         |        
   httplib.HTTPSConnection --+    
                             |    
              HTTPSxConnection --+
                                 |
                                HTTPSxTunneled

Subclass of HTTPSxConnection that will use an existing connected sock

Nested Classes [hide private]

Inherited from httplib.HTTPConnection: response_class

Instance Methods [hide private]
 
__init__(self, sock, host, port=None, key_file=None, cert_file=None, strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT)
Constructor.
source code
 
connect(self)
Wraps the existing socket into SSL
source code

Inherited from HTTPSxConnection: sslwrap

Inherited from httplib.HTTPConnection: close, endheaders, getresponse, putheader, putrequest, 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]

Inherited from httplib.HTTPSConnection: default_port

Inherited from httplib.HTTPConnection: auto_open, debuglevel, strict

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

Instance Variables [hide private]

Inherited from HTTPSxConnection: ca_certs, cert_reqs

Method Details [hide private]

__init__(self, sock, host, port=None, key_file=None, cert_file=None, strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT)
(Constructor)

source code 

Constructor. It delegates construction to the base class HTTPConnection and initializes the new member variables with the default values from the Python documentation

HTTPConnection and initializes the new member variables with the default values from the Python documentation

Parameters:
  • sock (socket) - connected sock to use
  • host (str) - host to connect to
  • port (int|None) - port to connect to. use None for the default HTTP port
  • key_file (str|None) - path to private key_file or None if stored in cert_file
  • cert_file (str|None) - path to certificate to be used for validation or None
  • strict (Unknown) - n/a
  • timeout (float) - default time for network operations
Overrides: httplib.HTTPConnection.__init__

connect(self)

source code 

Wraps the existing socket into SSL

Overrides: httplib.HTTPConnection.connect