phase 2 · 2.2-net-http-server
net/http JSON API — no routers
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.