def __init__(self, host, port=443, proxies={}): """Connection initialization @param host: the host to connect to. @type host: string @param port: the port number to connect to @type port: integer @param proxies: proxies that we can use to connect @type proxies: L{gnet.proxy.ProxyInfos}""" HTTP.__init__(self, host, port, proxies) self._http_proxy = None
def __init__(self, host, port=443, proxy=None): """Connection initialization @param host: the host to connect to. @type host: string @param port: the port number to connect to @type port: integer @param proxy: proxy that we can use to connect @type proxy: L{gnet.proxy.ProxyInfos}""" HTTP.__init__(self, host, port) assert(proxy is None or proxy.type == 'https') self.__proxy = proxy
def __init__(self, host, port=443, proxy=None): """Connection initialization @param host: the host to connect to. @type host: string @param port: the port number to connect to @type port: integer @param proxy: proxy that we can use to connect @type proxy: L{gnet.proxy.ProxyInfos}""" HTTP.__init__(self, host, port) assert proxy is None or proxy.type == "https" self.__proxy = proxy