http2 中 static table for :protocol pseudo-header 的索引号是多少?
What is the index number in static table for :protocol pseudo-header in http2?
我正在制作识别 websocket 连接的项目。由于在 HTTP2 中更改了 websocket 连接方式,因此添加了一个新的 pseudo-header ":protocol",如 RFC8441. But I can't find an index number for this new pseudo-header in HPACK's static table.
中所述
我试过谷歌搜索,但没有相关信息。
您无法将条目添加到状态 table。 HPACK 中的第一行 link(强调我的):
The static table (see Section 2.3.1) consists in a predefined and unchangeable list of header fields.
The HPACK format is intentionally simple and inflexible. Both characteristics reduce the risk of interoperability or security issues due to implementation error. No extensibility mechanisms are defined; changes to the format are only possible by defining a complete replacement.
因此 header 添加到动态 HPACK table 但没有固定索引号。
即使它在静态 table 中分配了一个索引号,但假设它一直被使用也是错误的 - different clients use the static and dynamic table differently.
我正在制作识别 websocket 连接的项目。由于在 HTTP2 中更改了 websocket 连接方式,因此添加了一个新的 pseudo-header ":protocol",如 RFC8441. But I can't find an index number for this new pseudo-header in HPACK's static table.
中所述我试过谷歌搜索,但没有相关信息。
您无法将条目添加到状态 table。 HPACK 中的第一行 link(强调我的):
The static table (see Section 2.3.1) consists in a predefined and unchangeable list of header fields.
The HPACK format is intentionally simple and inflexible. Both characteristics reduce the risk of interoperability or security issues due to implementation error. No extensibility mechanisms are defined; changes to the format are only possible by defining a complete replacement.
因此 header 添加到动态 HPACK table 但没有固定索引号。
即使它在静态 table 中分配了一个索引号,但假设它一直被使用也是错误的 - different clients use the static and dynamic table differently.