- 182,783
- non-test, non-generated
- 411,512
- total callsites
- 72
- 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,184 | <1% | 343 |
| Header.Set | 18,873 | 5% | 811 |
| Header.Get | 16,808 | 3% | 731 |
| Request.Context | 12,556 | 4% | 405 |
| Error | 8,077 | 3% | 398 |
| ResponseWriter.Header | 7,679 | 4% | 591 |
| ResponseWriter.WriteHeader | 6,054 | 2% | 618 |
| Header.Add | 5,337 | 58% | 507 |
| Client.Do | 5,209 | 8% | 626 |
| NewRequestWithContext | 4,532 | 5% | 368 |
| ResponseWriter.Write | 2,989 | 6% | 569 |
| NewRequest | 2,732 | 4% | 599 |
| ServeMux.HandleFunc | 2,663 | 2% | 273 |
| Handler.ServeHTTP | 2,333 | 2% | 342 |
| Request.FormValue | 1,978 | <1% | 180 |
| ServeMux.Handle | 914 | 6% | 215 |
| HandleFunc | 841 | <1% | 163 |
| NewServeMux | 840 | 2% | 326 |
| Header.Del | 816 | 17% | 224 |
| StatusText | 802 | 4% | 288 |
| Redirect | 758 | <1% | 211 |
| RoundTripper.RoundTrip | 742 | 3% | 232 |
| ListenAndServe | 625 | 1% | 235 |
| Get | 593 | 9% | 392 |
| Server.Serve | 592 | 4% | 270 |
| Client.Get | 565 | 14% | 306 |
| Flusher.Flush | 486 | 29% | 197 |
| Header.Values | 462 | 10% | 147 |
| Server.Shutdown | 441 | 4% | 240 |
| Request.SetBasicAuth | 410 | 3% | 193 |
| Request.ParseForm | 401 | <1% | 185 |
| Request.PathValue | 394 | 0% | 34 |
| CanonicalHeaderKey | 387 | 48% | 145 |
| NotFound | 360 | 0% | 181 |
| Request.UserAgent | 360 | 1% | 106 |
| Handle | 326 | 1% | 91 |
| Server.ListenAndServe | 291 | 2% | 188 |
| MaxBytesReader | 291 | 0% | 111 |
| Request.Clone | 279 | 20% | 133 |
| FileServer | 279 | <1% | 164 |
| DetectContentType | 271 | 6% | 111 |
| Transport.Clone | 259 | 2% | 138 |
| Request.Cookie | 254 | 3% | 96 |
| SetCookie | 231 | 4% | 86 |
| Client.CloseIdleConnections | 226 | 5% | 72 |
| StripPrefix | 218 | 2% | 117 |
| Header.Clone | 215 | 4% | 123 |
| Server.Close | 204 | 1% | 151 |
| Hijacker.Hijack | 202 | 0% | 135 |
| ProxyURL | 171 | 4% | 101 |
| Client.Post | 142 | 9% | 115 |
| Server.ListenAndServeTLS | 141 | 3% | 84 |
| ReadResponse | 136 | 7% | 93 |
| Serve | 136 | 4% | 93 |
| ServeContent | 130 | 4% | 80 |
| Request.BasicAuth | 125 | <1% | 136 |
| Transport.CloseIdleConnections | 122 | 8% | 75 |
| FileSystem.Open | 121 | 8% | 51 |
| NewResponseController | 108 | 3% | 57 |
| ParseTime | 108 | 6% | 56 |
| Request.Write | 102 | 5% | 63 |
| Post | 101 | 6% | 99 |
| NotFoundHandler | 88 | 5% | 77 |
| ServeFile | 85 | 0% | 43 |
| Request.ParseMultipartForm | 84 | 0% | 76 |
| FS | 84 | 0% | 63 |
| Request.FormFile | 83 | 4% | 59 |
| Server.ServeTLS | 79 | 1% | 60 |
| Request.AddCookie | 77 | 44% | 88 |
| Transport.RoundTrip | 75 | 5% | 53 |
| ServeMux.ServeHTTP | 73 | 0% | 86 |
| Response.Write | 73 | 12% | 40 |