@Override
        public <T> T read(Function<byte[], T> mapper) {
            return handle((response, __) -> {
                try (response) {
                    return mapper.apply(response.getEntity() == null ? new byte[0] : EntityUtils.toByteArray(response.getEntity()));
                }
            });
        }
Builder for a request against a given set of hosts.
http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java