undici icon indicating copy to clipboard operation
undici copied to clipboard

Interceptors: add response decompress interceptor

Open metcoder95 opened this issue 1 year ago • 4 comments

This would solve...

Decompression of compressed responses based on content-encoding header.

The implementation should look like...

Implemented as interceptor

Additional context

Ref: https://github.com/nodejs/undici/discussions/3253#discussion-6660897

metcoder95 avatar May 13 '24 15:05 metcoder95

cc: @ronag

metcoder95 avatar May 13 '24 15:05 metcoder95

Will you accept a PR for this? I would like to implement this

adrianfalleiro avatar May 16 '24 22:05 adrianfalleiro

PR welcome

tsctx avatar May 16 '24 23:05 tsctx

Ok made a first pass at this. Please take a look https://github.com/nodejs/undici/pull/3274

adrianfalleiro avatar May 18 '24 17:05 adrianfalleiro