def hs.hit
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
1293def hs.hit(+head: Bool, +k: U32, +len: U32, buf: Bytes.Bytes, at: Maybe<&2, U32>) -> Hs:
1294 match at:
1295 case None{}:
1296 HsWait{buf, k}
1297 case Some{+i}:
1298 +hlen = (i + 4 : U32)
1299 hs.split(head, k, hlen, len, Bytes.slice(buf, 0, hlen))