def encode

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

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

290# The body for parts under boundary b (RFC 7578 §4.1). Fails when b is not a valid boundary,
291# b's delimiter occurs in a body, or a Content-Type holds CR or LF.
292def encode(+b: String, parts: List<&1, Part>) -> Result<&1, &1, String, Bytes.Bytes>:
293  encode.if(boundary.ok(b), b, parts)

Uses (7)

Used by (1)