build: add response time header

This commit is contained in:
2026-04-21 01:33:13 +08:00
parent c5db90f37a
commit 6ada003c78
3 changed files with 14 additions and 3 deletions

View File

@@ -62,7 +62,7 @@
1. 所有响应都会回写 `x-request-id`
2. 所有响应都会回写固定的 `x-api-version`,当前值与 body `meta.apiVersion` 保持一致。
3. 所有响应都会回写 `x-route-version`,当前阶段默认与 `x-api-version` 保持一致,后续再按路由粒度细分。
4. `x-response-time-ms` 仍留在后续独立任务中补齐
4. 所有响应都会回写 `x-response-time-ms`,值来源于 `RequestContext` 内记录的请求开始时间
## 3. 边界约束