Skip to content
callcount

package

net/http

standard library

71 standard-library functions from net/http, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
177,238
non-test, non-generated
all calls
386,501
total callsites
functions
71
ranked in this snapshot
origin
std
standard-library

members

Functions in net/http

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
Request.WithContext 67,110
Header.Set 18,022
Header.Get 16,143
Request.Context 11,430
Error 7,772
ResponseWriter.Header 7,272
ResponseWriter.WriteHeader 5,868
Header.Add 5,317
Client.Do 5,010
NewRequestWithContext 4,273
ResponseWriter.Write 2,901
NewRequest 2,759
ServeMux.HandleFunc 2,463
Handler.ServeHTTP 2,217
Request.FormValue 1,910
ServeMux.Handle 902
HandleFunc 847
NewServeMux 784
Header.Del 769
StatusText 768
Redirect 751
RoundTripper.RoundTrip 698
ListenAndServe 626
Get 607
Server.Serve 576
Client.Get 564
Flusher.Flush 471
Server.Shutdown 440
Request.SetBasicAuth 411
Request.ParseForm 396
CanonicalHeaderKey 344
Request.UserAgent 341
NotFound 336
Request.PathValue 331
Handle 329
Server.ListenAndServe 296
FileServer 283
MaxBytesReader 247
Request.Clone 241
DetectContentType 241
Request.Cookie 240
Transport.Clone 232
StripPrefix 222
SetCookie 219
Client.CloseIdleConnections 209
Hijacker.Hijack 206
Header.Values 202
Server.Close 199
Header.Clone 171
ProxyURL 169
Client.Post 145
Server.ListenAndServeTLS 144
ReadResponse 135
Serve 134
ServeContent 123
FileSystem.Open 122
Request.BasicAuth 121
Transport.CloseIdleConnections 106
Post 104
Request.Write 103
NotFoundHandler 86
ServeFile 86
FS 83
Request.ParseMultipartForm 82
ParseTime 82
Request.AddCookie 78
Request.FormFile 78
Response.Write 76
Server.ServeTLS 75
ServeMux.ServeHTTP 72
Transport.RoundTrip 68