diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-23 14:20:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-25 14:15:33 -0700 |
| commit | 3687eada6a4c7a2f9444b090f49094c9755cb364 (patch) | |
| tree | 84de51657e54833d4b258962cb1361b45c4ef18a /lib/std/http | |
| parent | 869ef00602328f97ea8c88358310cbd34d4391ab (diff) | |
| download | zig-3687eada6a4c7a2f9444b090f49094c9755cb364.tar.gz zig-3687eada6a4c7a2f9444b090f49094c9755cb364.zip | |
std: rework zstd for new I/O API
This passes tests but it doesn't provide as big a window size as is
required to decompress larger streams.
The next commit in this branch will work towards that, without
introducing an additional buffer.
Diffstat (limited to 'lib/std/http')
| -rw-r--r-- | lib/std/http/Server.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/http/Server.zig b/lib/std/http/Server.zig index 25d3e44253..886aed72dc 100644 --- a/lib/std/http/Server.zig +++ b/lib/std/http/Server.zig @@ -129,11 +129,10 @@ pub const Request = struct { pub const Compression = union(enum) { pub const DeflateDecompressor = std.compress.zlib.Decompressor(std.io.AnyReader); pub const GzipDecompressor = std.compress.gzip.Decompressor(std.io.AnyReader); - pub const ZstdDecompressor = std.compress.zstd.Decompressor(std.io.AnyReader); deflate: DeflateDecompressor, gzip: GzipDecompressor, - zstd: ZstdDecompressor, + zstd: std.compress.zstd.Decompress, none: void, }; |
