def server.stats

bend-kit-http@0.38.5.0 · http.bend:6351

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

6351# None means accounting has closed after the listener and its retained operations.
6352# This is not a drain result or a per-response write outcome.
6353def server.stats(observer: ServerStats) -> IO(Maybe<&2, ServerCounts>):
6354  ServerStats{inbox} = observer
6355  do IO<Maybe<&2, ServerCounts>>:
6356    counts : Maybe<&2, Admission.Counts> <- Admission.snapshot(inbox)
6357    return server.counts(counts)

Uses (9)

Used by (0)

No other definition uses this definition.