HTTP2
HTTP/2 (Hypertext Transfer Protocol version 2, initially named HTTP 2.0), abbreviated as h2 (encrypted connection based on TLS/1.2 or above) or h2c (non-encrypted connection), HTTP/2 is the second major version of the HTTP protocol, used to transmit data between web servers and clients.
HTTP/2 is the first update to the HTTP protocol since the release of the improved RFC of HTTP 1.1 in 1999, mainly based on the SPDY protocol.
Most mainstream browsers already supported this protocol by the end of 2015.
HTTP/2 is a network protocol and an upgraded version of HTTP/1.1, released by the IETF in 2015. HTTP/2 aims to improve web performance, reduce latency, increase security, and make web applications faster, more efficient, and more reliable.

HTTP/2 Features
The following are some features and improvements of HTTP/2:
Multiplexing: HTTP/2 allows multiple requests and responses to be sent simultaneously, instead of processing them one by one like HTTP/1.1. This reduces latency, improves efficiency, and increases network throughput.
Binary transmission: HTTP/2 uses a binary protocol, unlike the text protocol used by HTTP/1.1. Binary protocols can be parsed faster, transmit data more efficiently, and reduce overhead and latency during transmission.
Header compression: HTTP/2 uses the HPACK algorithm to compress HTTP headers, reducing the amount of header data transmitted, thereby reducing network latency.
Server push: HTTP/2 supports server push, allowing the server to push resources before the client requests them to improve performance.
Improved security: HTTP/2 uses TLS (Transport Layer Security) by default to encrypt transmitted data, improving security.
Compatibility with HTTP/1.1: HTTP/2 can coexist with HTTP/1.1, and servers can support both HTTP/1.1 and HTTP/2 simultaneously. If the client does not support HTTP/2, the server can fall back to HTTP/1.1.
Overall, HTTP/2 has significant improvements in performance, security, and usability, making web applications faster, more efficient, and more reliable.
Data transmission uses multiplexing, allowing multiple requests to be combined within the same TCP connection, as shown in the following figure:

HTTP/2 reduces network latency and improves browser page loading speed:

HTTP/2 uses a binary format to transmit data instead of a text format like HTTP/1.1. This improves efficiency and reduces data transmission latency.

HTTP/2 uses header compression to reduce the size of transmitted data. This helps reduce network bandwidth usage and improve page loading speed.

HTTP/2 allows the server to actively send data to the client without being requested. This helps reduce request latency and improve page loading speed.
