C.W.K.
Stream
← C.W.K. Quests
🌐

HTTP & REST Quest

Updated: 2026-05-25

The wire-format literacy every web/API quest assumes — and none teach

Stop using HTTP/REST by feel. Learn the substrate every modern API rides — methods, status codes, headers, caching, CORS, auth — at the level where bugs become diagnoses, not mysteries.

8 tracks · 46 lessons · ~22h · difficulty: beginner-to-advanced

Level 0HTTP Newbie
0 XP0/46 lessons0/12 achievements
0/120 XP to next level120 XP to go0% complete
Every quest you might already have walked — Next.js, Claude SDK, GPT Wire, WebSocket, Protocol — quietly assumes you understand HTTP. This one stops assuming. Eight tracks take you from the wire (TCP, TLS, HTTP/1.1 vs 2 vs 3, request anatomy) through the semantic layer (idempotency as the actual invariant, status codes as a polymorphic protocol, conditional requests as cache contracts) into REST design done honestly (resources vs RPC, URI design, the HATEOAS paradox — Fielding's dissertation on one side, what 99% of 'REST APIs' actually ship on the other), then auth (Bearer, JWT, OAuth2 with PKCE, CORS as enforced server-declared policy), caching, real-time handoff (where REST ends and WebSocket begins), and production patterns (observability, OpenAPI, retry with backoff, API gateways). cwkPippa's 400+ FastAPI routes are the playground. The goal isn't to make you cite RFC 9110 from memory — it's to make you fluent enough that CORS preflight, 422 vs 400, and idempotency keys stop being myths and start being mechanics.

Tracks

  1. 01🧱Foundations — The Wire You Were Already Using

    0/7 lessons

    TCP, TLS, HTTP versions, methods, headers, status code families

    Before REST design, before auth, before caching — there's the wire. Seven lessons take you from 'HTTP is the postal service of the web' down to request anatomy, the TLS handshake, the HTTP/1.1 vs 2 vs 3 evolution, every method, every header category, and the polymorphic dispatch of 1xx-5xx status codes. By the end, opening a request in DevTools stops feeling like Greek.

    Lesson list (7)Quiz · 6 questions
  2. 02🎯Semantics — The Invariants Methods Actually Promise

    0/6 lessons

    Idempotency, safety, cacheability, content negotiation, conditional requests, versioning

    Foundations told you the method names. Semantics tells you what each one promises to clients, proxies, and CDNs. Idempotency is the actual invariant (verb mapping is the consequence). Status codes are a polymorphic protocol (not a lookup table). Content negotiation is how clients and servers agree on format without pre-arranging anything. Conditional requests are cache contracts. By the end, you can defend every PUT vs POST choice with the three-property invariant, not folklore.

    Lesson list (6)Quiz · 6 questions
  3. 03🏛️REST Design — Resources, URIs, HATEOAS Honestly

    0/7 lessons

    Resources vs RPC, URI design, the HATEOAS paradox, pagination, error envelopes

    REST is the architectural style Fielding described in 2000. What ships in 2026 under the name 'REST API' is mostly RPC dressed in HTTP. Both work; this track teaches you to tell which is which, design either one well, and stop arguing about HATEOAS without having read the dissertation. Seven lessons: resources vs RPC mental model, URI design rules, two lessons on HATEOAS (pure and honest), pagination patterns, query shape, and error envelope design.

    Lesson list (7)Quiz · 6 questions
  4. 04🛡️Auth & Security — Wire-Level, Not Hand-Waved

    0/6 lessons

    Bearer, API keys, JWT, OAuth2 with PKCE, CORS, rate limiting

    Most API auth bugs come from copy-paste OAuth flows whose internals nobody understands. This track unpacks the wire-level story: HTTP Basic and Bearer (the originals), API keys vs short-lived tokens (and when each fits), JWT structure and refresh flows, OAuth2 with PKCE (the modern canonical pattern), CORS as enforced server-declared policy, and rate limiting via 429 + Retry-After. Six lessons; concepts before libraries.

    Lesson list (6)Quiz · 6 questions
  5. 05Caching & Performance — The Contract You Already Have

    0/5 lessons

    Cache-Control, ETag, conditional GET, CDN layers, compression, HTTP/2 multiplexing

    HTTP has a sophisticated caching protocol most APIs ignore. This track teaches you to USE it — Cache-Control as a contract between server and intermediaries, conditional GET as the fast path that skips body transfer entirely, CDN layers (browser / edge / origin) and which one your headers target, compression negotiation (gzip / brotli / zstd), and the HTTP/2 multiplexing wins that change client design assumptions inherited from HTTP/1.1. Five lessons.

    Lesson list (5)Quiz · 5 questions
  6. 06🌊Streaming & Async — Where REST Ends

    0/5 lessons

    Polling → long-polling → SSE → chunked transfer → WebSocket handoff → webhooks

    REST is request/response. Real-time, push, and long-running operations need different patterns. This track walks the spectrum: polling (cheap, wasteful), long-polling (server holds the connection), SSE (one-way server-to-client streaming over HTTP), chunked transfer (the substrate SSE rides on), the WebSocket handoff (when you need full duplex), webhooks (inverted REST), and the 202 + Location async pattern. Five lessons.

    Lesson list (5)Quiz · 5 questions
  7. 07🚀Production — The Real Job

    0/6 lessons

    Observability, curl, httpie/Postman, OpenAPI, client retry, API gateways

    The protocol details are necessary; running an API in production is sufficient. This track teaches the operational layer: correlation IDs that thread through distributed traces, curl as the universal debug tool, the GUI clients you'll actually reach for, OpenAPI as the wire's documentation, client design that survives partial failures (retry + circuit breakers), and the long-term stewardship of an API (gateways + versioning lifecycles). Six lessons.

    Lesson list (6)Quiz · 6 questions
  8. 08🎓Epilogue — cwkPippa as Reference + Where to Go Next

    0/4 lessons

    Walk a real REST codebase, see what's not REST, build your own, look outward

    Seven tracks of theory; four lessons of reflection. The first walks cwkPippa's backend routes/ as a working REST + SSE + WebSocket reference. The second is the honest 'when not to use REST' (gRPC, GraphQL, RPC) section. The third is a tiny CRUD end-to-end that applies what you've learned. The fourth is a roadmap of where to go from here — the deeper topics this quest deliberately deferred.

    Lesson list (4)Quiz · 4 questions
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.