HTTP/2

Published in May 2015 as RFC 7540 [1], HTTP/2 is the latest major revision of the HTTP protocol. It is mostly based on Google's SPDY protocol and offers a new binary framing layer that is not backward-compatible with HTTP/1. As mentioned previously, most of its features were developed through the SPDY project. The most notable difference between SPDY and HTTP/2 was the way that the new protocol compressed its headers. Whereas SPDY relied on dynamically compressing headers with gzip, the HTTP/2 protocol used a new method named HPACK, which made use of a fixed Huffman code-based algorithm. This new method was needed in order to avoid a problem that was found with SPDY, by which data compression led to the possible leakage of private ...

Get Mastering The Faster Web with PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.