private HttpRequest request(HttpRequest.Builder request, Method method, byte[] data) {
        return request(request, method, () -> new ByteArrayInputStream(data));
    }
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