':return: A string containing the URL without the query string and
without any path.'

def base_url(self):

    params = (self.scheme, self.netloc, None, None, None, None)
    return URL.from_parts(encoding=self._encoding, *params)
