Decompresses an HTTP response body based on a Content-Encoding
header.
Supports stacked encodings such as "gzip, br", applying them in the
reverse order required by HTTP.
@eryx/http/body ModuleDecompresses an HTTP response body based on a Content-Encoding
header.
Supports stacked encodings such as "gzip, br", applying them in the
reverse order required by HTTP.
The decoded body bytes.
Creates an incremental decoder for a Content-Encoding header value.
This is used by streamed HTTP responses so callers can consume decompressed data incrementally instead of buffering the whole encoded body first.
The Content-Encoding header value.
A decoder object, or nil when no decoding is required.
An incremental HTTP content decoder returned by body.createDecoder.