Returns request selector url from absolute URI

def _url(self, uri):
        """Returns request selector url from absolute URI"""
        prefix = "{}://{}{}".format(
            self._protocol,
            self.real_connection.host,
            self._port_postfix(),
        )
        return uri.replace(prefix, '', 1)