go-dojo
learn go · earn mastery
phase 2 · 2.2-net-http-server

net/http JSON API — no routers

prereqs 2.1-http-protocol1.3-error-testing1.4-pointers-slices-maps
review intervals 3d 7d 21d 60d drills http-handler

The lesson for this task hasn't been written yet. The mastery criteria below is the shortest description of what you'll own when this task is green.

Mastery criteria

- POST /kv/set, GET /kv/get?key=X, DELETE /kv/del?key=X all working; status codes correct
- Middleware for request logging + panic recovery composed via http.Handler chain
- No third-party router — stdlib only. Explain why you'd eventually reach for one and when not to

Verify

Run from your go-dojo repo root:

go-dojo verify 2.2-net-http-server

This runs the task's go test suite in exercises/phase-2/2.2-net-http-server/, commits the attempt to .go-dojo/attempts/, and updates your mastery.