Series · ongoing
net/http under the hood
How Go's HTTP client really sends a request, from RoundTripper to the connection pool.
- 01
RoundTripper in Go: The secret behind http.Client nobody explained
Understand how Go's RoundTripper works, the low-level mechanism behind every HTTP request. Learn to customize it for logging, retry, headers, and more.
Jan 30, 2026 · 4 min read
- 02
Go's HTTP Connection Pool: The Key Is the Server, Not the Endpoint
I thought I understood net/http's connection pool. Then I found out the pool key ignores the path entirely, and that my own Transport config had silently turned off HTTP/2. Three discoveries, measured with httptrace.
Aug 18, 2026 · 8 min read