HTTP (Hypertext Transfer Protocol) 1.1 / 2 / 3
What it is for
HTTP's semantics have barely changed: a request is method, path, headers, body; a response is status code, headers, body. GET /index.html means the same in all three generations of HTTP.
What changes between generations is how messages are encoded on the wire and which transport protocol carries them.
The three HTTP generations and HTTPS
· HTTP/1.1: plain text, and one connection can carry only one request at a time;
· HTTPS: a TLS layer added between HTTP and TCP; HTTP's semantics are unchanged, and HTTPS itself is not a new generation of HTTP;
· HTTP/2: binary frames multiplexed by stream ID, still over a single TCP connection;
· HTTP/3: runs on QUIC, where streams are managed by the transport, so one loss blocks only one stream.
Common misconceptions
HTTPS is HTTP plus TLS, not a separate protocol: methods, status codes and headers are unchanged, and the default port changes from 80 to 443.
HTTP/2 solved head-of-line blocking only at the HTTP layer: once the TCP connection underneath loses a packet, all streams are blocked together.
HTTP/3 is reliable: it runs on UDP, and reliability is provided by QUIC.