net/http.NewRequest
standard libraryThe 320th most-called standard-library function by production calls. Called 39,885 times across 597 modules; 2,759 of those run outside tests and generated code.
0% in production calls vs 2026-W37 (2,767 → 2,759)
- prod calls
- 2,759
- non-test, non-generated
- all calls
- 39,885
- total callsites
- modules
- 597
- distinct callers
- in loop
- 4%
- of prod calls
- in tests
- 22%
- 8,611 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 89 3%
- Harbor 73 3%
- Grafana 70 3%
- Prometheus 38 1%
where it's called
Callsites in the wild
12 representative callsites of 39,885, 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.9.14
in loop -
Mrs4s/go-cqhttp @v1.2.0
in loop -
NoFxAiOS/nofx @v0.0.0-20260905025447-638d40421189
in loop
top callers
The modules that reach for it
The modules that call NewRequest most in this snapshot.
- google.golang.org/api27,37669%
- github.com/hashicorp/consul7402%
- github.com/elastic/go-elasticsearch/v85621%
- github.com/hashicorp/nomad4581%
- github.com/seaweedfs/seaweedfs278<1%
siblings
More from net/http
The other most-called functions in this package. See all →