Skip to content
IT glossary
BackendUpdated December 3, 2026

HTTP/2

The second major version of HTTP lets a client and server exchange multiple requests and responses at the same time over one connection. It changes how messages travel, not what methods or status codes mean.

Also known as: HTTP/3, QUIC

What changes with HTTP/2?

A GET still retrieves a resource, a 404 still means it wasn't found, and HTTP caching rules still apply. HTTP/2 changes the way those messages travel between a client and server. With HTTP/1.1, browsers commonly open several TCP connections to the same server to download resources concurrently. With HTTP/2, multiple requests can be in flight on a single connection, and the server can make progress on one response without finishing another first.

How multiplexing works

HTTP/2 encodes messages as binary frames. A HEADERS frame carries all or part of a header block, while DATA frames carry body bytes. Each ordinary request and its response use a logical stream. Frames for that exchange carry its stream ID, so the receiver can sort out which response a frame belongs to even when frames from different streams arrive interleaved. This sharing of a single connection is called multiplexing.

HTTP/2 also uses HPACK to compress header fields. For example, an encoder can refer to a table entry rather than resend a repeated header name and value in full. HPACK doesn't compress the response body; content compression such as gzip is separate.

Example: a stylesheet and a large image

Once a browser has the HTML, it might request a stylesheet and a large image at the same time. Even if the server starts sending the image first, it can send the stylesheet's frames before the image finishes. But if a TCP segment is lost, TCP holds back later bytes from the application until the gap is filled. That can stall delivery of the stylesheet even when the missing bytes belong only to the image.

Where you'll see it

Browsers, CDNs, and reverse proxies commonly use HTTP/2, and it is the basis for standard gRPC transport. Browsers use it over TLS and negotiate it with the h2 identifier via ALPN during the TLS handshake. The HTTP/2 specification also allows cleartext operation, though that's not how browsers normally use it. Protocol versions are chosen per connection: a browser can use HTTP/2 to reach a reverse proxy while the proxy uses HTTP/1.1 to reach the backend. Seeing h2 in browser developer tools tells you about the browser's connection, not every hop.

The interview question: does it fix head-of-line blocking?

Distinguish the two layers. At the HTTP layer, responses no longer have to finish in request order on a connection. At the TCP layer, bytes still have to be delivered in order across the entire connection. HTTP/3 is a separate version that runs over QUIC instead of TCP. QUIC provides ordered delivery within each stream, so a gap in one stream doesn't prevent already received data in another stream from being delivered.