docs: define native HTTP2 entry criteria

This commit is contained in:
2026-09-22 18:53:03 +08:00
parent a523e6ba3f
commit 83633f724e
3 changed files with 37 additions and 1 deletions

View File

@@ -56,6 +56,8 @@ if err := application.RunWith(ctx, server, ":8443"); err != nil {
native 当前只宣告 TLS ALPN `http/1.1`。未配置 `NextProtos` 时会自动补上;如果配置了 `h2` 等未实现协议,服务会在启动时直接返回错误,避免 TLS 协商成功后再被 HTTP/1.1 解析器拒绝。需要 HTTP/2 时,先让 Nginx/Cloudflare 在边缘终止 HTTP/2,再以 HTTP/1.1 回源;或继续使用默认的 `transport/nethttp` 适配器。native 的 HTTP/2 会在独立协议设计和压测完成后再进入。
HTTP/2 的进入条件、连接/流生命周期、背压和长测矩阵见 [native HTTP/2 进入条件](native/HTTP2.md)。
## 可移植路由规则(v0.3.0)
| 项目 | 约定 |