I tried to find any mention of handling of compression in new Java HTTP Client but failed. Is there a built-in configuration to handle for e.g. gzip
or deflate
compression?
I would expect to have a BodyHandler
for e.g. something like this:
HttpResponse.BodyHandlers.ofGzipped(HttpResponse.BodyHandlers.ofString())
but I don't see any. I don't see any configuration in HttpClient
either. Am I looking in the wrong place or was this intentionally not implemented and deferred to support libraries?