async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

Does AHC support decompressing body by gzip or deflate automatically?

Open asyougo opened this issue 4 years ago • 2 comments

When the response has a header named Content-Encoding, does AHC support decompressing body by gzip or deflate automatically? If not, how can I implement the function of decompresssing the body after receiving response?

asyougo avatar May 11 '21 03:05 asyougo

It is done automatically, you could test it against https://httpbin.org/#/Response_formats/get_gzip

jilen avatar May 14 '21 01:05 jilen

It is done automatically, you could test it against https://httpbin.org/#/Response_formats/get_gzip

It's useful.Thank you very much!

asyougo avatar Jun 11 '21 03:06 asyougo