Std.Compress.Gzip
13 public declarations
- compress
&Bytes -> &Std.Compress.Gzip.GzipConfig -> BytesCompatibility convenience for callers treating compression failure as fatal.
- compressChecked
&Bytes -> &Std.Compress.Gzip.GzipConfig -> Result[Bytes, Std.Compress.Gzip.GzipError]Compress bytes using the configured zlib level; checked form exposes host failure.
- CompressionLevel
Compression optimization profile.
- compressText
Str -> &Std.Compress.Gzip.GzipConfig -> BytesCompresses UTF-8 text into an RFC 1952 GZIP stream.
- config
Std.Compress.Gzip.GzipConfigConstructs a default GZIP compression configuration.
- Configuring
A configuration with one setting changed, each answering the configuration
- crc32
&Bytes -> IntCalculates the standard IEEE 802.3 32-bit Cyclic Redundancy Check (CRC-32) over input bytes.
- decompress
&Bytes -> Result[Bytes, Std.Compress.Gzip.GzipError]Decode one gzip member with a default 64 MiB decompressed output limit.
- decompressText
&Bytes -> Result[Str, Std.Compress.Gzip.GzipError]Decompresses an RFC 1952 GZIP stream and decodes the payload as UTF-8 text.
- decompressWithin
&Bytes -> Int -> Result[Bytes, Std.Compress.Gzip.GzipError]Enforce output admission during inflation, including highly compressible inputs.
- GzipConfig
Configuration parameters for streaming GZIP compression and HTTP middleware.
- GzipError
Structured failure conditions encountered during GZIP stream decompression.
- middleware
&Std.Compress.Gzip.GzipConfig -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseCompress eligible public responses without changing binary payload bytes on the wire.
