class documentation

class TunnelingTCP4ClientEndpoint(TCP4ClientEndpoint): (source)

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 connectFailed Propagates the errback to the appropriate deferred.
Method processProxyResponse 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 requestTunnel Asks the proxy to open a tunnel.
Class Variable _responseAnswer Undocumented
Class Variable _responseMatcher Undocumented
Class Variable _truncatedLength Undocumented
Instance Variable _connectBuffer Undocumented
Instance Variable _contextFactory Undocumented
Instance Variable _protocol Undocumented
Instance Variable _protocolDataReceived Undocumented
Instance Variable _protocolFactory Undocumented
Instance Variable _proxyAuthHeader Undocumented
Instance Variable _tunneledHost Undocumented
Instance Variable _tunneledPort Undocumented
Instance Variable _tunnelReadyDeferred Undocumented
def __init__(self, reactor, host, port, proxyConf, contextFactory, timeout=30, bindAddress=None): (source)

Undocumented

def connect(self, protocolFactory): (source)

Undocumented

def connectFailed(self, reason): (source)

Propagates the errback to the appropriate deferred.

def processProxyResponse(self, rcvd_bytes): (source)

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): (source)

Asks the proxy to open a tunnel.

_responseAnswer = (source)

Undocumented

_responseMatcher = (source)

Undocumented

_truncatedLength: int = (source)

Undocumented

_connectBuffer = (source)

Undocumented

_contextFactory = (source)

Undocumented

_protocol = (source)

Undocumented

_protocolDataReceived = (source)

Undocumented

_protocolFactory = (source)

Undocumented

_proxyAuthHeader = (source)

Undocumented

_tunneledHost = (source)

Undocumented

_tunneledPort = (source)

Undocumented

_tunnelReadyDeferred = (source)

Undocumented