code: def get_netloc(self):
          
          if self.proxy:
              scheme = self.proxytype
              host = self.proxyhost
              port = self.proxyport
          else:
              scheme = self.scheme
              host = self.host
              port = self.port
          return (scheme, host, port)
docs: Determine scheme, host and port for this connection taking
          proxy data into account.
          @return: tuple (scheme, host, port)
          @rtype: tuple(string, string, int)