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
178,152
non-test, non-generated
all calls
388,160
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,117
Header.Set 18,131
Header.Get 16,346
Request.Context 11,633
Error 7,839
ResponseWriter.Header 7,369
ResponseWriter.WriteHeader 5,893
Header.Add 5,297
Client.Do 5,017
NewRequestWithContext 4,282
ResponseWriter.Write 2,922
NewRequest 2,761
ServeMux.HandleFunc 2,467
Handler.ServeHTTP 2,253
Request.FormValue 1,951
ServeMux.Handle 898
HandleFunc 847
NewServeMux 784
Header.Del 773
StatusText 770
Redirect 753
RoundTripper.RoundTrip 704
ListenAndServe 626
Get 607
Server.Serve 576
Client.Get 564
Flusher.Flush 494
Server.Shutdown 440
Request.SetBasicAuth 412
Request.ParseForm 397
CanonicalHeaderKey 357
Request.UserAgent 352
NotFound 337
Request.PathValue 331
Handle 329
Server.ListenAndServe 296
FileServer 282
MaxBytesReader 256
Request.Clone 246
Request.Cookie 245
DetectContentType 244
Transport.Clone 233
SetCookie 223
StripPrefix 218
Client.CloseIdleConnections 213
Header.Values 207
Hijacker.Hijack 206
Server.Close 199
Header.Clone 173
ProxyURL 168
Client.Post 145
Server.ListenAndServeTLS 144
ReadResponse 135
Serve 134
ServeContent 125
Request.BasicAuth 124
FileSystem.Open 121
Transport.CloseIdleConnections 106
Post 104
Request.Write 103
ServeFile 87
NotFoundHandler 86
FS 84
ParseTime 84
Request.ParseMultipartForm 83
Request.FormFile 83
Request.AddCookie 78
Server.ServeTLS 75
Response.Write 74
ServeMux.ServeHTTP 71
Transport.RoundTrip 68