HTTP2 agreement main points of improvement

1, into a binary protocol, each transmission of binary frames, which has the following fields

Type type, the length of the length, flag, StringID stream flag, Payload load, the most basic type, and both types HEAD DATA Type

2, a multiplexer, a connection may be on simultaneously transmit multiple data streams, each transport stream is a fixed order, according to the splice has arrived

3, supports priority, by weight

4, support for reset interrupts, HTTP / 1.1, if a request is sent out, and in the absence of finished sending, is not canceled, only disconnect the TCP connection, but have to disconnect and reconnect a little time-consuming, HTTP2 can send a RST_STREAM frame indicates a request to cancel the transmission, transfer back to re-start

5, header compression, most of the requests of the head are similar, especially the cookie information is similar to the proportion of heavy sometimes, can be compressed

6, support for server push, the server in response to client requests A customer resources, estimates may soon also used B resource, the server can send resources to the client B, of course, the premise is to tell the client to display the server The client allows this push, and, ultimately, the client has the right to decide whether to accept, if not accept, you can send a RST_STREAM frame cancel

7, support for flow control, support for client and server communicate with each other in the data window size

 

Article simultaneous release:  https://www.geek-share.com/detail/2780659759.html

Guess you like

Origin www.cnblogs.com/xxcn/p/11617939.html