def decoder

bend-kit-multipart@0.3.0.0 · multipart.bend:602

import bend-kit-multipart@0.3.0.0/multipart.bend as Multipart
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

602# A decoder for boundary b. It starts with a CRLF, so a delimiter at the very start is found like any other.
603def decoder(b: String) -> Dec:
604  +delim = "\r\n--" ++ b
605  Dec{delim, Bytes.count(delim, 0), Pre{}, Bytes.from_string("\r\n")}

Uses (6)

Used by (1)