def connect(self, timeout=None, interface=None): if timeout is None: timeout = self.loop.opts.timeout if interface is None: interface = self.address[0] if ispy3: return http_client.HTTPConnection(interface, self.address[1], timeout=timeout) else: return http_client.HTTPConnection(interface, self.address[1], strict=True, timeout=timeout)
def connect(self, timeout=None, interface=None): if timeout is None: timeout = self.loop.opts.timeout if interface is None: interface = self.address[0] ans = http_client.HTTPConnection(interface, self.address[1], timeout=timeout) ans.connect() return ans