livery_codec_deflate (livery v0.2.0)
View SourceBuilt-in deflate content-coding over OTP zlib.
Emits zlib-wrapped DEFLATE (RFC 1950, WindowBits 15), which is the
spec-correct deflate content-coding (NOT raw DEFLATE). Decodes with
zlib:uncompress/1 and any conformant client.
Summary
Functions
One-shot zlib-wrapped DEFLATE of a whole body.
Content-Encoding token.
Release the streaming context.
Trailing bytes finalizing the deflate stream.
Open a streaming deflate context.
Compress and flush one chunk.
Functions
One-shot zlib-wrapped DEFLATE of a whole body.
-spec name() -> binary().
Content-Encoding token.
-spec stream_close(zlib:zstream()) -> ok.
Release the streaming context.
-spec stream_finish(zlib:zstream()) -> iodata().
Trailing bytes finalizing the deflate stream.
-spec stream_init() -> zlib:zstream().
Open a streaming deflate context.
-spec stream_update(zlib:zstream(), iodata()) -> iodata().
Compress and flush one chunk.