HTTP/2
Cheat sheet · https://pcornel.dk/topic.php?topic=6264
Answer
HTTP/2 keeps HTTP semantics but sends them as binary frames on numbered streams, multiplexing many requests over a single TCP connection with compressed headers (HPACK).
Remember
One TCP connection, many streams. Browsers only use HTTP/2 over TLS. A lost TCP packet still stalls every stream (TCP head-of-line blocking) — that is what HTTP/3 fixes. Server push is deprecated in practice; use 103 Early Hints or preload.
First checks
curl -sS -o /dev/null --http2 -w "%{http_version}\n" https://<host>/— prints 2 when h2 was negotiated.openssl s_client -alpn h2 -connect <host>:443 -servername <host> </dev/null 2>/dev/null | grep ALPN— server selected h2.- nginx:
http2 on;in the server block (1.25.1+); Apache:Protocols h2 http/1.1.
Verify in this order
TCP → TLS with ALPN h2 → connection preface + SETTINGS → streams carrying HEADERS/DATA frames → flow-control windows → GOAWAY on shutdown
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6264