HTTP Protocol Engineer
Master HTTP semantics: caching and conditional requests, ranges, content negotiation, HTTP/2 multiplexing, HTTP/3, and observability.
Path overview
精通 HTTP 语义:缓存与条件请求、范围请求、内容协商、HTTP/2 多路复用、HTTP/3 与可观测性。
Master HTTP semantics: caching and conditional requests, ranges, content negotiation, HTTP/2 multiplexing, HTTP/3, and observability.
Run the http protocol engineer snippet "Skip Unchanged Downloads with ETag Requests", capture stdout, and show which line demonstrates the documented behavior: "Send If-None-Match on repeat HTTP requests, handle 304 responses, and reuse the stored body".
Next step: Accept Header Negotiation With Quality Values
⏱ 0.75h
Adapt "Accept Header Negotiation With Quality Values" to a second input and compare the new output with the behavior described in "Parse Accept headers with q-values and wildcards, then pick the best supported media type".
Prerequisites: Skip Unchanged Downloads with ETag Requests
Next step: Range Request File Server
⏱ 0.75h
Execute "Range Request File Server", change one constant, and describe how the output diverges from "Serve a single file from a confined root and rely on ServeContent for partial content,".
Prerequisites: Accept Header Negotiation With Quality Values
Next step: HTTP Header Analyzer
⏱ 0.75h
Feed a representative input into "HTTP Header Analyzer" and verify "lines to analysis" by hand.
Prerequisites: Range Request File Server
Next step: Set HTTP Cache Headers for Static Assets and HTML
⏱ 0.25h
Apply "Set HTTP Cache Headers for Static Assets and HTML" to a http protocol engineer task, checking that "Response includes Cache-Control: public, max-age=31536000, immutable." appears after the "Confirm that asset filenames contain a content hash. Only then is a long immutable cache" step.
Prerequisites: HTTP Header Analyzer
Next step: Decide Cache Revalidation from Headers
⏱ 0.5h
Solve "Decide Cache Revalidation from Headers" for http protocol engineer work: turn JSON object: { response: { cacheControl, ageSeconds, etag? }, into {directives:{public:true,maxAge:60,staleWhileRevalidate:30},status:304 and pass both samples.
Next step: Capstone: HTTP Protocol Engineer
⏱ 0.42h
Ship "Freshness checker" from "Build an HTTP Cache Layer", then prove it with the project's test suite and an acceptance note.
Prerequisites: Decide Cache Revalidation from Headers
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h