docs: public URI toURI() {
          String scheme = getScheme();
          String authority = getAuthority(scheme);
          String queryString = getQueryString();
          String uri = scheme + "://" + authority;
  
          if (!queryString.isEmpty()) {
              uri += "?" + queryString;
          }
  
          return URI.create(uri);
      }