HTTP/3 支持


🌐 HTTP/3 support

当协商的 ALPN 标识符为 'h3'(或某个 'h3-*' 草案变体之一)时,QUIC 会话会运行由 nghttp3 支持的 HTTP/3 应用。'h3'quic.connect()quic.listen() 的默认 ALPN,因此除非你明确选择不同的 ALPN,否则你得到的就是 HTTP/3。

🌐 When the negotiated ALPN identifier is 'h3' (or one of the 'h3-*' draft variants), the QUIC session runs the HTTP/3 application backed by nghttp3. 'h3' is the default ALPN for quic.connect() and quic.listen(), so HTTP/3 is what you get unless you select a different ALPN explicitly.

选择 HTTP/3 应用可以启用许多非 HTTP/3 应用无法使用的流级和会话级功能:

🌐 Selecting the HTTP/3 application enables a number of stream- and session-level capabilities that are not available to non-HTTP/3 applications: