private static UrlDownloader downloader(String urlString, DownloadOptions options) throws MalformedURLException {
        Objects.requireNonNull(urlString, "url cannot be null");
        URL url = new URL(urlString);
        return switch (url.getProtocol()) {
            case "http", "https" -> new UrlDownloader(url, options);
            default -> throw new IllegalArgumentException("Unsupported scheme '" + url.getProtocol() + "'");
        };
    }
An RPC server that handles URL download requests.

@author Lester Solbakken
config-proxy/src/main/java/com/yahoo/vespa/config/proxy/filedistribution/UrlDownloadRpcServer.java