HTTP/2
Also called: HTTP 2, HTTP multiplexing, h2
HTTP/2 carries HTTP messages in binary frames and multiplexes several exchanges on one TCP connection. Stream identifiers keep the exchanges distinct, and compressed fields reduce repeated metadata. A server can interleave data from different responses instead of finishing one whole response before starting the next.
For example, frames for an image and stylesheet can alternate while both resources load. This removes HTTP/1.1’s response-order bottleneck, but TCP still delivers one ordered byte stream: a missing TCP segment can hold up bytes belonging to several HTTP/2 streams. Multiplexing therefore improves concurrency without eliminating every source of waiting.
- Related
- HTTP/1.1, HTTP/3, gRPC, Head-of-line blocking
- Further reading
- IETF RFC 9113 — HTTP/2