美文网首页
HTTP/2 Frames

HTTP/2 Frames

作者: 庞贝船长 | 来源:发表于2019-01-07 21:16 被阅读0次

    HTTP/1.x messages 缺点

    HTTP/1.x messages have a few drawbacks for performance:

    • Headers, unlike bodies, are uncompressed.
    • Headers are often very similar from one message to the next one, yet still repeated across connections.
    • No multiplexing can be done. Several connections need opening on the same server: and warm TCP connections are more efficient than cold ones.

    HTTP/2 Frames

    HTTP/2 introduces an extra step: it divides HTTP/1.x messages into frames which are embedded in a stream. Data and header frames are separated, this allows header compression. Several streams can be combined together, a process called multiplexing, allowing more efficient underlying TCP connections.

    Binary_framing2.png

    参考

    MDN: HTTP Messages

    相关文章

      网友评论

          本文标题:HTTP/2 Frames

          本文链接:https://www.haomeiwen.com/subject/vfwprqtx.html