class documentation

class TunnelingTCP4ClientEndpoint(TCP4ClientEndpoint):

View In Hierarchy

An endpoint that tunnels through proxies to allow HTTPS downloads. To accomplish that, this endpoint sends an HTTP CONNECT to the proxy. The HTTP CONNECT is always sent when using this endpoint, I think this could be improved as the CONNECT will be redundant if the connection associated with this endpoint comes from the pool and a CONNECT has already been issued for it.
Method __init__ Undocumented
Method connect Undocumented
Method connect​Failed Propagates the errback to the appropriate deferred.
Method process​Proxy​Response Processes the response from the proxy. If the tunnel is successfully created, notifies the client that we are ready to send requests. If not raises a TunnelError.
Method request​Tunnel Asks the proxy to open a tunnel.
Class Variable _response​Matcher Undocumented
Instance Variable _connect​Buffer Undocumented
Instance Variable _context​Factory Undocumented
Instance Variable ​_protocol Undocumented
Instance Variable _protocol​Data​Received Undocumented
Instance Variable _protocol​Factory Undocumented
Instance Variable _proxy​Auth​Header Undocumented
Instance Variable _tunneled​Host Undocumented
Instance Variable _tunneled​Port Undocumented
Instance Variable _tunnel​Ready​Deferred Undocumented
def __init__(self, reactor, host, port, proxyConf, contextFactory, timeout=30, bindAddress=None):

Undocumented

def connect(self, protocolFactory):

Undocumented

def connectFailed(self, reason):
Propagates the errback to the appropriate deferred.
def processProxyResponse(self, rcvd_bytes):
Processes the response from the proxy. If the tunnel is successfully created, notifies the client that we are ready to send requests. If not raises a TunnelError.
def requestTunnel(self, protocol):
Asks the proxy to open a tunnel.
_responseMatcher =

Undocumented

_connectBuffer =

Undocumented

_contextFactory =

Undocumented

_protocol =

Undocumented

_protocolDataReceived =

Undocumented

_protocolFactory =

Undocumented

_proxyAuthHeader =

Undocumented

_tunneledHost =

Undocumented

_tunneledPort =

Undocumented

_tunnelReadyDeferred =

Undocumented