- 177,238
- non-test, non-generated
- 386,501
- 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,110 | <1% | 341 |
| Header.Set | 18,022 | 5% | 803 |
| Header.Get | 16,143 | 3% | 726 |
| Request.Context | 11,430 | 4% | 388 |
| Error | 7,772 | 3% | 389 |
| ResponseWriter.Header | 7,272 | 4% | 572 |
| ResponseWriter.WriteHeader | 5,868 | 2% | 599 |
| Header.Add | 5,317 | 57% | 499 |
| Client.Do | 5,010 | 8% | 618 |
| NewRequestWithContext | 4,273 | 5% | 358 |
| ResponseWriter.Write | 2,901 | 5% | 553 |
| NewRequest | 2,759 | 4% | 597 |
| ServeMux.HandleFunc | 2,463 | 1% | 264 |
| Handler.ServeHTTP | 2,217 | 2% | 329 |
| Request.FormValue | 1,910 | <1% | 172 |
| ServeMux.Handle | 902 | 6% | 214 |
| HandleFunc | 847 | <1% | 166 |
| NewServeMux | 784 | <1% | 317 |
| Header.Del | 769 | 17% | 210 |
| StatusText | 768 | 4% | 274 |
| Redirect | 751 | <1% | 195 |
| RoundTripper.RoundTrip | 698 | 4% | 222 |
| ListenAndServe | 626 | 1% | 237 |
| Get | 607 | 10% | 393 |
| Server.Serve | 576 | 4% | 268 |
| Client.Get | 564 | 14% | 298 |
| Flusher.Flush | 471 | 26% | 180 |
| Server.Shutdown | 440 | 3% | 240 |
| Request.SetBasicAuth | 411 | 3% | 187 |
| Request.ParseForm | 396 | <1% | 175 |
| CanonicalHeaderKey | 344 | 47% | 132 |
| Request.UserAgent | 341 | 2% | 99 |
| NotFound | 336 | 0% | 172 |
| Request.PathValue | 331 | 0% | 32 |
| Handle | 329 | 1% | 93 |
| Server.ListenAndServe | 296 | 2% | 189 |
| FileServer | 283 | <1% | 163 |
| MaxBytesReader | 247 | 0% | 105 |
| Request.Clone | 241 | 29% | 117 |
| DetectContentType | 241 | 5% | 108 |
| Request.Cookie | 240 | 3% | 88 |
| Transport.Clone | 232 | 2% | 125 |
| StripPrefix | 222 | 2% | 116 |
| SetCookie | 219 | 5% | 80 |
| Client.CloseIdleConnections | 209 | 4% | 61 |
| Hijacker.Hijack | 206 | 0% | 121 |
| Header.Values | 202 | 19% | 130 |
| Server.Close | 199 | <1% | 143 |
| Header.Clone | 171 | 5% | 109 |
| ProxyURL | 169 | 4% | 99 |
| Client.Post | 145 | 9% | 114 |
| Server.ListenAndServeTLS | 144 | 3% | 86 |
| ReadResponse | 135 | 6% | 87 |
| Serve | 134 | 4% | 91 |
| ServeContent | 123 | 4% | 72 |
| FileSystem.Open | 122 | 8% | 51 |
| Request.BasicAuth | 121 | 2% | 128 |
| Transport.CloseIdleConnections | 106 | 11% | 60 |
| Post | 104 | 6% | 102 |
| Request.Write | 103 | 5% | 64 |
| NotFoundHandler | 86 | 3% | 65 |
| ServeFile | 86 | 0% | 43 |
| FS | 83 | 0% | 62 |
| Request.ParseMultipartForm | 82 | 0% | 68 |
| ParseTime | 82 | 4% | 50 |
| Request.AddCookie | 78 | 44% | 82 |
| Request.FormFile | 78 | 4% | 54 |
| Response.Write | 76 | 16% | 42 |
| Server.ServeTLS | 75 | 1% | 56 |
| ServeMux.ServeHTTP | 72 | 0% | 80 |
| Transport.RoundTrip | 68 | 6% | 47 |