我知道,如果我们谈论非安全连接,则可以在没有 ALPN 的情况下通过 http/2 协议建立连接。但是 TLS 连接呢?在RFC中说:
A client MUST send the connection preface (Section 3.5) and then MAY
immediately send HTTP/2 frames to such a server; servers can identify
these connections by the presence of the connection preface. This
only affects the establishment of HTTP/2 connections over cleartext
TCP; **implementations that support HTTP/2 over TLS MUST use protocol
negotiation in TLS [TLS-ALPN]**.
这是否意味着服务器和客户端都必须使用 ALPN 通过 TLS 和 http2 建立连接?还是有解决方法和其他选择?