Typorithm · medium

HTTP/1.1, /2 & /3

http-versionsnetworkshttphttp2quic
Saved on this device
Full lesson · 8 learning steps Open any exercise for focused practice
1

Step 1 of 8 · intro card

Learn HTTP/1.1, /2 & /3

0%

L7 & TLS

HTTP/1.1 sends one request at a time per connection (head-of-line blocking). HTTP/2 multiplexes many streams over one TCP connection with header compression. HTTP/3 runs over QUIC (on UDP) to remove TCP head-of-line blocking and speed up connection setup.

HTTP/1.1 handles one request per connection at a time. A slow response blocks the others behind it on that connection — head-of-line blocking — so browsers open several connections per host to work around it.

HTTP/2 multiplexes many independent streams over a single TCP connection and compresses headers (HPACK), cutting overhead. But because all streams share one TCP connection, a lost TCP packet still stalls every stream until it is retransmitted.

HTTP/3 runs over QUIC, a transport built on UDP. QUIC gives each stream its own delivery, so one lost packet no longer blocks the others, and it folds the transport and TLS handshakes together for faster connection setup. curl -I fetches headers only.

01

HTTP/1.1: one request at a time per connection.

02

HTTP/2: multiplexed streams + header compression over one TCP conn.

03

HTTP/3: QUIC over UDP removes TCP head-of-line blocking.

curl -v https://example.com
curl --http2 -I https://example.com
curl --http3 -I https://example.com
# HTTP/2: multiplexing over one TCP conn
# HTTP/3: QUIC over UDP

Read the implementation

Connect each part of the code to the concept before you type.

1. Verbose request

curl -v prints the request and response, including which HTTP version was negotiated.

curl -v https://example.com

2. Force HTTP/2

--http2 asks for HTTP/2; -I fetches only the response headers.

curl --http2 -I https://example.com

3. Force HTTP/3

--http3 requests HTTP/3, which runs over QUIC on UDP.

curl --http3 -I https://example.com

4. HTTP/2 multiplexing

HTTP/2 interleaves many streams over a single TCP connection.

# HTTP/2: multiplexing over one TCP conn

5. HTTP/3 over QUIC

HTTP/3 swaps TCP for QUIC on UDP to avoid TCP-level head-of-line blocking.

# HTTP/3: QUIC over UDP

A complete learning loop

01

Understand

Read the concept map and follow the code breakdown.

02

Reconstruct

Type the implementation, repair mistakes and work through every recall exercise.

03

Verify

Use the final check without hints; revisit weak concepts in short practice sessions.

HTTP/1.1, /2 & /3: Lesson & Practice · Typorithm | ApplyDjinn