Detect and apply decompression based on Content-Encoding header.
Supports gzip, deflate, and brotli (Node.js only). For multiple encodings
(e.g., "gzip, br"), decompresses in reverse order: first outermost (gzip),
then inner (brotli).
Uses DecompressionStream in browsers/Deno/Bun/Workers, and node:zlib in Node.js
for brotli support.
Detect and apply decompression based on Content-Encoding header.
Supports gzip, deflate, and brotli (Node.js only). For multiple encodings (e.g., "gzip, br"), decompresses in reverse order: first outermost (gzip), then inner (brotli).
Uses DecompressionStream in browsers/Deno/Bun/Workers, and node:zlib in Node.js for brotli support.