net/http.ResponseWriter.WriteHeader
standard libraryThe 169th most-called standard-library method by production calls. Called 27,900 times across 599 modules; 5,868 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (5,806 → 5,868)
- prod calls
- 5,868
- non-test, non-generated
- all calls
- 27,900
- total callsites
- modules
- 599
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 74%
- 20,739 calls
- resolved
- 0%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Embedded method<1%Reached through an embedded type.
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into ResponseWriter.WriteHeader from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 476 8%
- Grafana 178 3%
- VictoriaMetrics 131 2%
- Istio 126 2%
- InfluxDB 114 2%
where it's called
Callsites in the wild
12 representative callsites of 27,900, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
etcd-io/etcd @v2.3.8+incompatible
in loop - in loop
- in loop
-
adnanh/webhook @v0.0.0-20260904180256-2bbdeb9f90b5
in loop -
aquasecurity/testdocker @v0.0.0-20260423080828-99e7cbfdbe56
in loop - in loop
- in loop
-
coreos/etcd @v2.3.8+incompatible
in loop - in loop
top callers
The modules that reach for it
The modules that call ResponseWriter.WriteHeader most in this snapshot.
- github.com/IBM/platform-services-go-sdk1,8797%
- github.com/IBM/vpc-go-sdk1,7656%
- github.com/IBM/networking-go-sdk1,6936%
- github.com/gophercloud/gophercloud1,1174%
- github.com/influxdata/telegraf1,0744%
siblings
More from net/http
The other most-called members in this package. See all →