def phase.head

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

import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-time@0.3.0.0/time.bend as Time

5995def phase.head(empty: Bool, settings: Limits, now: Time.Duration) -> Phase:
5996  match empty:
5997    case True{}:
5998      Limits{max, cap, hm, bm, im, wm} = settings
5999      phase.new(0, im, now)
6000    case False{}:
6001      Limits{max, cap, hm, bm, im, wm} = settings
6002      phase.new(1, hm, now)

Uses (5)

Used by (1)