public static Scheme of(String scheme) {
            if (scheme.equalsIgnoreCase(http.name())) return http;
            if (scheme.equalsIgnoreCase(https.name())) return https;
            throw new IllegalArgumentException("scheme must be HTTP or HTTPS");
        }
Intentionally not usable for constructing new URIs. Use {@link HttpURL} for that instead.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java