':return: Returns a string containing the URL without the query string.'

@memoized
def uri2url(self):

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