mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
feat(aether-proxy): delegate gzip body 流式透传替代读取解压
- gzip 压缩请求体直接流式转发给上游,避免全量读取和解压 - 非 gzip 请求保持原有读取逻辑 - 移除 body_read_ms/decompress_ms 指标,新增 passthrough 标记 - 前端 timing 展示兼容旧版字段 - 同步更新 Cargo.lock
This commit is contained in:
@@ -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)}`
|
||||
|
||||
Reference in New Issue
Block a user