def METHOD_NAME(self, protocolFactory):
    """Connect to remote server through an HTTP tunnel."""
    tunnel = HTTPTunnelFactory(self.host, self.port, protocolFactory)
    d = self.proxyEndpoint.METHOD_NAME(tunnel)
    # once tunnel connection is established,
    # defer the subsequent server connection
    d.addCallback(lambda result: tunnel._onConnection)
    return d