private static URI withQuery(URI base, String name, String value) {
        return base.resolve(  "?" + (base.getRawQuery() != null ? base.getRawQuery() + "&" : "")
                            + URLEncoder.encode(name, UTF_8) + "=" + URLEncoder.encode(value, UTF_8));
    }
Returns an authenticated request from the given input. Override this for, e.g., request signing.
hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java