Networking
3 posts
Understanding HTTP/1.1: Redirects in Go (Part 3)
301 vs 302 vs 307 vs 308 — which HTTP redirect to use, which ones browsers cache, which preserve the request method, tested against a small Go server.
Understanding HTTP/1.1: Content-Type in Go (Part 2)
How the Content-Type header decides what a browser does with your response, plus a hand-rolled http.ResponseWriter implementation in Go.
Understanding HTTP/1.1: TCP Server in Go (Part 1)
Build a raw TCP server in Go, inspect what curl and a browser actually send over the wire, and hand-craft a valid HTTP/1.1 response.