The client and server communicate via protocols on the Internet. The protocol – HTTP – was introduced in 1991, and its last major release, HTTP/1.1, was published more than two decades ago. In 2015, HTTP/2 was introduced that resolved a lot of significant challenges of HTTP.
HTTP/2 protocols provide a way to improve the online experience by speeding up page loads and reducing round-trip time, especially for resource-heavy web pages. It makes our applications faster, simpler, and more robust by allowing us not to implement HTTP/1.1 workarounds in our applications. These concerns are now addressed within the transport layer.
HTTP/2 is an extension of the previous version, not a replacement. The application semantics of the HTTP is the same, and no changes were made to the core concepts such as HTTP methods, status codes, URIs, and header fields.
Here are the features of HTTP/2:
HTTP/2 is more efficient in terms of network resource usage than HTTP/1.1. It has reduced the perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection.
HTTP/2 uses efficient coding for HTTP header fields and allows the interleaving of request and response messages on the same connection.