Form.form.split: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/form.bend as Form Lines 297-310 of emerging-ezhttp@0.21.0.0/src/form.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&start_line=297&end_line=310 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # the parts as the plan sees them, and the files' bytes in order; `d` is # the delimiter's octets, one character each def form.split(+d: String, us: List<&1, Upload>) -> List<&2, Part> & List<&1, Bytes.Bytes>: match us: case []: ([], []) case u <> t: match u: case UField{name, value}: form.split.field(name, value, form.split(d, t)) case UFile{name, filename, ctype, bytes}: form.split.file(name, filename, ctype, form.found(Bytes.find(bytes, d)), form.split(d, t)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=find https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&name=Part https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&name=Upload https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&name=form.found https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&name=form.split.field https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/form.bend&name=form.split.file