def head.known
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
584def head.known(ok: Bool, +t: U32, +i: U32, stack: List<&1, Frame>, b: Bytes.Bytes) -> Bytes.Bytes & St:
585 match ok:
586 case True{}:
587 head.eol(t, i, stack, Bytes.find.from(b, "\r\n", (i + 1 : U32)))
588 case False{}:
589 (b, head.end(U32.is_eq(t, 256)))