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

Method NumRequests

modules/caddyhttp/reverseproxy/hosts.go:184–186  ·  view source on GitHub ↗

NumRequests returns the number of active requests to the upstream.

()

Source from the content-addressed store, hash-verified

182
183// NumRequests returns the number of active requests to the upstream.
184func (h *Host) NumRequests() int {
185 return int(h.numRequests.Load())
186}
187
188// Fails returns the number of recent failures with the upstream.
189func (h *Host) Fails() int {

Callers 5

SelectMethod · 0.80
leastRequestsFunction · 0.80
FullMethod · 0.80
handleUpstreamsMethod · 0.80
proxyLoopIterationMethod · 0.80

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected