net/http.NewRequest
standard libraryThe 344th most-called standard-library function by production calls. Called 41,610 times across 599 modules; 2,732 of those run outside tests and generated code.
0% in production calls vs 2026-W48 (2,731 → 2,732)
- prod calls
- 2,732
- non-test, non-generated
- all calls
- 41,610
- total callsites
- modules
- 599
- distinct callers
- in loop
- 4%
- of prod calls
- in tests
- 22%
- 9,047 calls
- resolved
- 100%
- 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into NewRequest from notable Go projects. Open one on the map to see what else it hammers.
- InfluxDB 95 3%
- Kubernetes 83 3%
- Harbor 73 3%
- Grafana 70 3%
- Prometheus 38 1%
where it's called
Callsites in the wild
12 representative callsites of 41,610, 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
- in loop
- in loop
-
etcd-io/etcd @v2.3.8+incompatible
in loop - in loop
-
gitea.dev @v1.27.3
services/migrations/gitea_downloader.go:302
in loop - in loop
-
AlexxIT/go2rtc @v1.10.0
in loop -
Mrs4s/go-cqhttp @v1.2.0
in loop -
NoFxAiOS/nofx @v0.0.0-20261104124651-65e9037b4527
in loop
top callers
The modules that reach for it
The modules that call NewRequest most in this snapshot.
- google.golang.org/api28,73369%
- github.com/hashicorp/consul7402%
- github.com/elastic/go-elasticsearch/v85621%
- github.com/hashicorp/nomad4581%
- github.com/seaweedfs/seaweedfs329<1%
siblings
More from net/http
The other most-called functions in this package. See all →