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