feat(aether-proxy): delegate gzip body 流式透传替代读取解压

- gzip 压缩请求体直接流式转发给上游,避免全量读取和解压
- 非 gzip 请求保持原有读取逻辑
- 移除 body_read_ms/decompress_ms 指标,新增 passthrough 标记
- 前端 timing 展示兼容旧版字段
- 同步更新 Cargo.lock
This commit is contained in:
fawney19
2026-02-11 17:17:45 +08:00
parent 257077a59b
commit 0ddeccf698
3 changed files with 46 additions and 59 deletions

View File

@@ -466,7 +466,7 @@ const proxyTimingBreakdown = (proxy: Record<string, any>): string => {
const parts: string[] = []
// 读取 + 解压合并显示(含压缩率
// 兼容旧版 timing含 body_read_ms/decompress_ms
const readDecompress = (t.body_read_ms || 0) + (t.decompress_ms || 0)
if (readDecompress > 0) {
let label = `读取 ${formatLatency(readDecompress)}`