In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What I want to share with you in this article is what are the main improvements to the HTTP2 protocol. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.
1. Change it to a binary protocol. Each time a binary frame is transmitted, the frame has the following fields.
Type type, length length,flag,StringID flow flag, Payload payload, the most basic two types: HEAD type and DATA type
2. Multiplexing allows multiple data streams to be transmitted at the same time on a single connection. The transmission order of each stream is fixed and can be spliced successively.
3. Support priority, through weight
4. Reset interrupt is supported. In HTTP/1.1, if a request is sent, it is difficult to cancel if it is not finished. You can only disconnect the TCP connection this time, but it takes time to disconnect the reconnection. HTTP2 can send a RST_STREAM frame to cancel the request transmission, and then restart the transmission.
5. Header compression. Most request headers are similar, especially information like cookie, which sometimes accounts for a heavy proportion and can be compressed.
6. Support server push. When the server responds to the client's request for A resource, it is estimated that B resource may be used immediately. The server can send B resource to the client. Of course, the premise is that the client displays to inform the server that the client allows such push, and the client finally has the right to decide whether to accept it or not. If not, it can send a RST_STREAM frame to cancel.
7. Support flow control and support the size of the data window in which the client and server communicate with each other
The above are the main improvements to the HTTP2 protocol, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.