Esempio n. 1
0
 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)
Esempio n. 2
0
 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