What is the difference between HTTP 1.1 and HTTP 2.0? [closed]

强颜欢笑 提交于 2019-12-03 00:04:44

问题


HTTP/1.1 has served the Web well for more than fifteen years, but its age is starting to show.

Can anybody explain what is the main difference between HTTP 1.1 and 2.0?

Is there any change in the transport protocol?


回答1:


HTTP/2 supports queries multiplexing, headers compression, priority and more intelligent packet streaming management. This results in reduced latency and accelerates content download on modern web pages.

More details here.




回答2:


HTTP 2.0 is a binary protocol that multiplexes numerous streams going over a single (normally TLS-encrypted) TCP connection.

The contents of each stream are HTTP 1.1 requests and responses, just encoded and packed up differently. HTTP2 adds a number of features to manage the streams, but leaves old semantics untouched.



来源:https://stackoverflow.com/questions/28592077/what-is-the-difference-between-http-1-1-and-http-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!