build: add route version response header

This commit is contained in:
2026-04-21 01:32:23 +08:00
parent 40d5e4948e
commit c5db90f37a
3 changed files with 12 additions and 3 deletions

View File

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