@Override
    public <T> HttpResponse<T> send(HttpRequest.Builder request, HttpResponse.BodyHandler<T> handler) {
        try {
            return client.send(authenticator.authenticated(request).build(), handler);
        }
        catch (IOException | InterruptedException e) {
            throw new RuntimeException(request.build() + " failed: " + e.getMessage(), e);
        }
    }
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