Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
httpstat
✓ github.com/tcnksm/go-httpstat
Trace HTTP request latency with detailed timing breakdown.
package main
import (
"fmt"
"net/http"
"github.com/tcnksm/go-httpstat"
)
func main() {
var result httpstat.Result
ctx := httpstat.WithHTTPStat(nil, &result)
req, _ := http.NewRequestWithContext(ctx, "GET", "https://example.com", nil)
_, _ = http.DefaultClient.Do(req)
fmt.Printf("TCP connection: %v\n", result.TCPConnection)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.