@Override
    public HttpRequest.Builder request(String path, Map<String, String> properties) {
        return HttpRequest.newBuilder(endpoint.resolve(path +
                                                       properties.entrySet().stream()
                                                                 .map(entry -> encode(entry.getKey(), UTF_8) + "=" + encode(entry.getValue(), UTF_8))
                                                                 .collect(Collectors.joining("&", path.contains("?") ? "&" : "?", ""))));
    }
A remote endpoint in a {@link HttpDeployment} of a Vespa application, reachable over HTTP.

@author jonmv
tenant-cd-commons/src/main/java/ai/vespa/hosted/cd/commons/HttpEndpoint.java