ricea/compressstream-explainer

"deflate": is this zlib format or raw format?

ricea opened this issue · 2 comments

ricea commented

It's ambiguous whether the "deflate" format is raw or includes the zlib header and footer. It might be good to rename it--maybe "deflate-raw".

Yeah, I think it makes the most sense to match HTTP Content-Encoding and have 'deflate' mean Zlib-wrapped DEFLATE (RFC1950)

Node uses 'deflateRaw' for the bare format and this sounds reasonable.

ricea commented

@ericlaw1979 Thanks. We settled on using "deflate" to mean "zlib" for consistency with HTTP, and will add "deflate-raw" in future to support zip and other use cases where the header and footer are unwanted.