http2 - msforest/notebook GitHub Wiki
知识点
http/1.x 的问题
- domain sharding
- head of line blocking
- 多个 tcp 连接
- Header 不像 body,它不会被压缩。
http2 的功能:(nghttp2 分析请求头信息)
- is binary, instead of textual
- is fully multiplexed, instead of ordered and blocking
- can therefore use one connection for parallelism
- uses header compression to reduce overhead
- allows servers to “push” responses proactively into client caches
http2 upgrade
header compression and decompression
- static Huffman code(曾被攻击,后引入了 HPACK 算法)
- HPACK
stream and multiplexing
flow control
request prioritization
server push
只限同域资源推送
资料学习