def server.stats

bend-kit-http@0.38.2.0 · http.bend:6359

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-http@0.38.2.0/admission.bend as Admission

6359# None means accounting has closed after the listener and its retained operations.
6360# This is not a drain result or a per-response write outcome.
6361def server.stats(observer: ServerStats) -> IO(Maybe<&2, ServerCounts>):
6362  ServerStats{inbox} = observer
6363  do IO<Maybe<&2, ServerCounts>>:
6364    counts : Maybe<&2, Admission.Counts> <- Admission.snapshot(inbox)
6365    return server.counts(counts)

Uses (9)

Used by (0)

No other definition uses this definition.