fix(fetch/s3) Handle backpressure when upload large bodies (#20481)

Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com>
This commit is contained in:
Ciro Spaciari
2025-06-27 20:52:46 -07:00
committed by GitHub
parent 694a820a34
commit 964f2a8941
68 changed files with 4130 additions and 3548 deletions

22
src/http/Encoding.zig Normal file
View File

@@ -0,0 +1,22 @@
pub const Encoding = enum {
identity,
gzip,
deflate,
brotli,
zstd,
chunked,
pub fn canUseLibDeflate(this: Encoding) bool {
return switch (this) {
.gzip, .deflate => true,
else => false,
};
}
pub fn isCompressed(this: Encoding) bool {
return switch (this) {
.brotli, .gzip, .deflate, .zstd => true,
else => false,
};
}
};