1
HTTP/2 Debugging
Use GODEBUG=http2debug=2 to debug HTTP/2 connections - how a Google Cloud Storage bug was found
2
Dumping HTTP Requests & Responses
Use httputil.DumpRequest and DumpResponse to examine HTTP traffic in wire format
3
Test Servers with httptest
Use httptest.NewServer for testing HTTP handlers without opening real ports
4
Custom HTTP Transport
Create custom http.RoundTripper to mock, intercept, or modify HTTP traffic