StackGrab

Stage 4 · Recap

What stuck?

A few checks to make the ideas yours, then the next stop on the route.

What to remember

  • A request carries a method, path, headers and an optional body; a response carries a status code, headers and a body.
  • The status class tells you who needs to act: 2xx worked, 3xx redirects, 4xx is a client fix, 5xx is a server problem.
  • HTTPS is HTTP over TLS: it encrypts the exchange and authenticates the server, at the cost of a handshake.
  • Reusing connections removes repeated handshakes; HTTP/2 multiplexes on one connection and HTTP/3 sets it up in one round trip.

Quick check

0 of 6 answered

All 6 questions are here so you can see the climb from recall to challenge. Answer them, then check. 4 of 6 passes; you can retry with new questions. No penalty for guessing.

  1. Warm-up
    1.Which part of an HTTP request names the resource, such as /products/42?
  2. Warm-up
    2.Which status class tells you the client made a mistake?
  3. Apply
    3.An API answers POST /cart with 201 Created. What does the status tell you?
  4. Apply
    4.What does HTTPS add on top of HTTP?
  5. Challenge
    5.A fresh HTTPS connection uses TCP (1 RTT) plus TLS 1.3 (1 RTT). With an illustrative RTT of 100 ms, how much setup time is paid before the first request on that connection?
  6. Challenge
    6.HTTP/3 runs over QUIC and folds transport and TLS setup into 1 RTT. With a 200 ms RTT, how much setup does it save versus HTTPS over TLS 1.3?
05

Next lesson

Latency numbers & back-of-envelope math

Continue the journey →