Package dap :: Package util :: Module wsgi_intercept :: Class WSGI_HTTPConnection
[hide private]
[frames] | no frames]

Class WSGI_HTTPConnection

source code

httplib.HTTPConnection --+
                         |
                        WSGI_HTTPConnection

Intercept all traffic to certain hosts & redirect into a WSGI application object.

Nested Classes [hide private]

Inherited from httplib.HTTPConnection: response_class


Instance Methods [hide private]
  get_app(self, host, port)
Return the app object for the given (host, port).
  connect(self)
Override the connect() function to intercept calls to certain host/ports.

Inherited from httplib.HTTPConnection: __init__, close, endheaders, getresponse, putheader, putrequest, request, send, set_debuglevel

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


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]

get_app(self, host, port)

source code 
Return the app object for the given (host, port).

connect(self)

source code 
Override the connect() function to intercept calls to certain host/ports.
Overrides: httplib.HTTPConnection.connect