def sh.of

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

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

4893def sh.of(hs: Hs) -> Sh:
4894  match hs:
4895    case HsWait{buf, k}:
4896      ShMore{buf, k}
4897    case HsBad{}:
4898      ShBad{None{}, False{}}
4899    case HsSeek{buf, from, k}:
4900      ShBad{None{}, False{}}
4901    case HsRes{res, rb, rest}:
4902      ShRes{res, rb, rest}

Uses (4)

Used by (1)