def form.part
import emerging-ezhttp@0.21.0.0/src/form.bend as Formimport Base
188# one part in front of `rest`: the delimiter line, its head, a blank line,
189# its content and a CRLF
190def form.part(+b: String, +p: Part, rest: List<&2, Seg>) -> List<&2, Seg>:
191 Run{octets.onto("--" ++ b ++ "\r\n" ++ form.head(p) ++ "\r\n", [])}
192 <> form.content(p, Run{octets.onto("\r\n", [])} <> rest)