def packed.chunk.ready
import emerging-ezhttp@0.21.0.0/src/packed.bend as Packedimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
57# a chunk of k octets from d whose CRLF has been looked for (chunks.ready)
58def packed.chunk.ready(r: Bytes.Bytes & String, +d: U32, +k: U32,
59 acc: List<&1, Bytes.Bytes>,
60 go: Bytes.Bytes -> U32 -> List<&1, Bytes.Bytes> -> Parts) -> Parts:
61 (b, crlf) = r
62 packed.chunk.ready.is(b, d, k, acc, String.eq(crlf, "\r\n"), go)