def hs.pick

bend-kit-http@0.38.4.0 · http.bend:1268

import bend-kit-http@0.38.4.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

1268def hs.pick(interim: Bool, +head: Bool, +k: U32, +status: U32, +h: Map<&2, List<&2, String>>, rest: Bytes.Bytes) -> Hs:
1269  match interim:
1270    case True{}:
1271      hs.skip(U32.is_lt(k, 8), k, rest)
1272    case False{}:
1273      hs.final(status, h, rest, rb.of(h, frame.nobody(status, head)))

Uses (12)

Used by (1)