MCPcopy
hub / github.com/caddyserver/caddy / getInFlightRequests

Function getInFlightRequests

modules/caddyhttp/reverseproxy/reverseproxy.go:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66func getInFlightRequests() map[string]int64 {
67 copyMap := make(map[string]int64)
68 inFlightRequests.Range(func(key, value any) bool {
69 copyMap[key.(string)] = value.(*atomic.Int64).Load()
70 return true
71 })
72 return copyMap
73}
74
75func init() {
76 caddy.RegisterModule(Handler{})

Callers 1

handleUpstreamsMethod · 0.85

Calls 2

RangeMethod · 0.80
LoadMethod · 0.80

Tested by

no test coverage detected