def phase.head
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-time@0.3.0.0/time.bend as Time
6003def phase.head(empty: Bool, settings: Limits, now: Time.Duration) -> Phase:
6004 match empty:
6005 case True{}:
6006 Limits{max, cap, hm, bm, im, wm} = settings
6007 phase.new(0, im, now)
6008 case False{}:
6009 Limits{max, cap, hm, bm, im, wm} = settings
6010 phase.new(1, hm, now)