著名的HPACK演示图是否错误?

问题描述 投票:0回答:1

enter image description here

最右边的图片中的19令我非常困惑,恕我直言,我将是4 [2]。

幻灯片来自https://docs.google.com/presentation/d/1r7QXGYOLCh4fcUq0jDdDwKJWNqWK1o4xMtYpKZCJYjM/edit#slide=id.gfd0e3427_048

[2] https://http2.github.io/http2-spec/compression.html#rfc.section.A

http-headers http2 huffman-code hpack
1个回答
0
投票
[对我来说也是错的,我同意:path应该为4,而不是accept为19。

演示者的书高性能浏览器网络(available online for free)具有this in the HPACK section

HPACK header compression example

如您所见,确实包含accept标头,因此怀疑他们在简化幻灯片的示例时只是打错了字。

© www.soinside.com 2019 - 2024. All rights reserved.