- 178,152
- non-test, non-generated
- 388,160
- total callsites
- 71
- ranked in this snapshot
- std
- standard-library
Functions in net/http
Ranked by production calls. The bar scales each function against the
busiest in this package.
| Function | Prod calls | In loop | Modules |
| Request.WithContext | 67,117 | <1% | 342 |
| Header.Set | 18,131 | 5% | 806 |
| Header.Get | 16,346 | 3% | 728 |
| Request.Context | 11,633 | 4% | 394 |
| Error | 7,839 | 3% | 389 |
| ResponseWriter.Header | 7,369 | 4% | 579 |
| ResponseWriter.WriteHeader | 5,893 | 2% | 603 |
| Header.Add | 5,297 | 57% | 500 |
| Client.Do | 5,017 | 8% | 618 |
| NewRequestWithContext | 4,282 | 5% | 360 |
| ResponseWriter.Write | 2,922 | 5% | 556 |
| NewRequest | 2,761 | 4% | 597 |
| ServeMux.HandleFunc | 2,467 | 1% | 266 |
| Handler.ServeHTTP | 2,253 | 2% | 335 |
| Request.FormValue | 1,951 | <1% | 176 |
| ServeMux.Handle | 898 | 6% | 214 |
| HandleFunc | 847 | <1% | 166 |
| NewServeMux | 784 | <1% | 319 |
| Header.Del | 773 | 17% | 213 |
| StatusText | 770 | 4% | 275 |
| Redirect | 753 | <1% | 196 |
| RoundTripper.RoundTrip | 704 | 3% | 223 |
| ListenAndServe | 626 | 1% | 237 |
| Get | 607 | 10% | 393 |
| Server.Serve | 576 | 4% | 269 |
| Client.Get | 564 | 14% | 298 |
| Flusher.Flush | 494 | 28% | 182 |
| Server.Shutdown | 440 | 3% | 240 |
| Request.SetBasicAuth | 412 | 3% | 187 |
| Request.ParseForm | 397 | <1% | 176 |
| CanonicalHeaderKey | 357 | 46% | 132 |
| Request.UserAgent | 352 | 2% | 101 |
| NotFound | 337 | 0% | 173 |
| Request.PathValue | 331 | 0% | 32 |
| Handle | 329 | 1% | 93 |
| Server.ListenAndServe | 296 | 2% | 189 |
| FileServer | 282 | <1% | 162 |
| MaxBytesReader | 256 | 0% | 106 |
| Request.Clone | 246 | 22% | 119 |
| Request.Cookie | 245 | 3% | 91 |
| DetectContentType | 244 | 5% | 108 |
| Transport.Clone | 233 | 2% | 125 |
| SetCookie | 223 | 4% | 82 |
| StripPrefix | 218 | 2% | 117 |
| Client.CloseIdleConnections | 213 | 5% | 61 |
| Header.Values | 207 | 19% | 130 |
| Hijacker.Hijack | 206 | 0% | 122 |
| Server.Close | 199 | <1% | 144 |
| Header.Clone | 173 | 5% | 111 |
| ProxyURL | 168 | 4% | 99 |
| Client.Post | 145 | 9% | 115 |
| Server.ListenAndServeTLS | 144 | 3% | 86 |
| ReadResponse | 135 | 6% | 87 |
| Serve | 134 | 4% | 91 |
| ServeContent | 125 | 4% | 73 |
| Request.BasicAuth | 124 | 2% | 131 |
| FileSystem.Open | 121 | 8% | 51 |
| Transport.CloseIdleConnections | 106 | 11% | 62 |
| Post | 104 | 6% | 102 |
| Request.Write | 103 | 5% | 64 |
| ServeFile | 87 | 0% | 44 |
| NotFoundHandler | 86 | 3% | 65 |
| FS | 84 | 0% | 63 |
| ParseTime | 84 | 4% | 51 |
| Request.ParseMultipartForm | 83 | 0% | 69 |
| Request.FormFile | 83 | 4% | 56 |
| Request.AddCookie | 78 | 44% | 82 |
| Server.ServeTLS | 75 | 1% | 56 |
| Response.Write | 74 | 14% | 40 |
| ServeMux.ServeHTTP | 71 | 0% | 80 |
| Transport.RoundTrip | 68 | 6% | 47 |