【发布时间】:2022-01-26 20:18:30
【问题描述】:
http2 伪标头 :authority 和 :method 的目的是什么?我感到很困惑,因为:authority & :method 似乎重复了http 1.1中的Request URL(主机)和Request Method
与:path 伪标头相比,如https://developers.google.com/web/fundamentals/performance/http2#header_compression 中所述,我可以看到它可以用于对其他资源的连续请求。所以我怀疑:authority 和:method 可能也是为此目的的优化。但我无法弄清楚到底是怎么回事。比如:authority、:method和:path都与原来的Request URL和Request Method不同,浏览器不应该发出新的请求吗?
【问题讨论】:
标签: http2