← All Learning Paths

HTTP Protocol Engineer

Master HTTP semantics: caching and conditional requests, ranges, content negotiation, HTTP/2 multiplexing, HTTP/3, and observability.

technicaladvanced7 nodes11.42h total

Path overview

精通 HTTP 语义:缓存与条件请求、范围请求、内容协商、HTTP/2 多路复用、HTTP/3 与可观测性。

Master HTTP semantics: caching and conditional requests, ranges, content negotiation, HTTP/2 multiplexing, HTTP/3, and observability.

  1. 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".

    Completion criteria: Change one constant in "Skip Unchanged Downloads with ETag Requests", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Accept Header Negotiation With Quality Values

    ⏱ 0.75h

  2. 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

    Completion criteria: Paste the command, the exit code, and the output line matching "Parse Accept headers with q-values and wildcards, then pick the best supported media type"; then show a second run with a changed parameter.

    Next step: Range Request File Server

    ⏱ 0.75h

  3. 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

    Completion criteria: Save two runs of "Range Request File Server" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: HTTP Header Analyzer

    ⏱ 0.75h

  4. Feed a representative input into "HTTP Header Analyzer" and verify "lines to analysis" by hand.

    Prerequisites: Range Request File Server

    Completion criteria: Run two inputs through "HTTP Header Analyzer", record both outputs, and show one case where "Paste raw HTTP header lines and get a parsed name-value list with plain-language notes for" changes as expected.

    Next step: Set HTTP Cache Headers for Static Assets and HTML

    ⏱ 0.25h

  5. 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

    Completion criteria: Run the steps through "Confirm that asset filenames contain a content hash. Only then is a long immutable cache", paste the command output, and mark the line that matches "Response includes Cache-Control: public, max-age=31536000, immutable."; then rerun with one parameter changed.

    Next step: Decide Cache Revalidation from Headers

    ⏱ 0.5h

  6. 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.

    Completion criteria: Submit a solution for "HTTP Protocol Engineer" that passes both samples ({response:{cacheControl:public, max-age=60, to {directives:{public:true,maxAge:60,staleWhileRevalidate:30},) and attach the failing case you fixed.

    Next step: Capstone: HTTP Protocol Engineer

    ⏱ 0.42h

  7. 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

    Completion criteria: Run the project's test command for "Build an HTTP Cache Layer", paste the passing output, and attach the acceptance note for "Freshness checker" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h