Why is it said that HTTP2 is a binary protocol?

后端 未结 4 621
醉话见心
醉话见心 2020-12-31 17:39

I\'ve just read a article about differences between http1 and http2, but the main question that I have is when it says that http2 i

4条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 18:46

    I believe the primary reason HTTP/2 uses binary encoding is to pack the payload into the fixed sized frames. Plain text cannot fit exactly into the frame. So binary encoding the data and splitting into multiple frames would make lot more sense.

提交回复
热议问题