def form.build
import emerging-ezhttp@0.21.0.0/src/form.bend as Formimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/body.bend as Body
327# a plan as the form it builds
328def form.build(p: Plan, fs: List<&1, Bytes.Bytes>) -> Form:
329 match p:
330 case NoPlan{why}:
331 NoForm{why}
332 case Plan{ctype, segs}:
333 Form{ctype, Body.Octets{Bytes.concat(form.runs(segs, fs))}}