gpt4 book ai didi

http - WebSocket 是否与 HTTP/3 兼容

转载 作者:行者123 更新时间:2023-12-03 14:38:48 26 4
gpt4 key购买 nike

即将到来的 HTTP/3 标准不再基于 TCP,而是基于 QUIC 协议(protocol)。 WebSocket 基于 TCP 并作为 HTTP 更新启动。

WebSocket 连接是否基于 QUIC 而不是 TCP 作为 HTTP/3 更新启动?还是无法将 HTTP/3 连接更新为 WebSocket 连接?

最佳答案

当前 RFC6455 仅支持 HTTP/1.1用于连接升级。

Once a connection to the server has been established (including a
connection via a proxy or over a TLS-encrypted tunnel), the client
MUST send an opening handshake to the server. The handshake consistsof an HTTP Upgrade request, along with a list of required and
optional header fields. The requirements for this handshake are as
follows.

  1. The handshake MUST be a valid HTTP request as specified by[RFC2616].

  2. The method of the request MUST be GET, and the HTTP version MUSTbe at least 1.1.


然而,有提议支持 HTTP/2 和 HTTP/3(正如 Remy Lebeau 在上面的评论中提到的)。

关于http - WebSocket 是否与 HTTP/3 兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57378204/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com