Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTTP2

HTTP2

HTTP/2 (HTTP version 2, originally named HTTP 2.0), abbreviated as h2 (encrypted connection based on TLS/1.2 or above) or h2c (non-encrypted connection), 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 HTTP since the 1999 release of the HTTP/1.1 improvement RFC, and is mainly based on the SPDY protocol.

Most mainstream browsers had supported this protocol by the end of 2015.

HTTP/2 is a network protocol and an upgrade from 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:

Overall, HTTP/2 has significant improvements in performance, security, and usability, making web applications faster, more efficient, and more reliable.

It uses multiplexing for data transmission, merging multiple requests within the same TCP connection, as shown in the figure below:

HTTP/2 reduces network latency and improves the browser's page load speed:

HTTP/2 uses a binary format to transmit data, rather than the text format used by HTTP/1.1. This improves efficiency and reduces the latency of data transmission.

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

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