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

Class HTTPxTunneled

source code

httplib.HTTPConnection --+
                         |
                        HTTPxTunneled

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, strict=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT)
Constructor.
source code
 
connect(self)
Overrriding is needed to avoid establishing a new connection ...
source code

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.HTTPConnection: auto_open, debuglevel, default_port, strict

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

Method Details [hide private]

__init__(self, sock, host, port=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

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
  • strict (Unknown) - n/a
  • timeout (float) - default time for network operations
Overrides: httplib.HTTPConnection.__init__

connect(self)

source code 

Overrriding is needed to avoid establishing a new connection ... this goes over an existing socket

Overrides: httplib.HTTPConnection.connect