def form.content

emerging-ezhttp@0.21.0.0 · src/form.bend:179

import emerging-ezhttp@0.21.0.0/src/form.bend as Form
import Base

179# a part's content in front of `rest`: a field's value as UTF-8 octets, a
180# file's bytes as they are
181def form.content(p: Part, rest: List<&2, Seg>) -> List<&2, Seg>:
182  match p:
183    case Field{name, value}:
184      Run{octets.onto(value, [])} <> rest
185    case File{name, filename, ctype, clash}:
186      Blob{} <> rest

Uses (4)

Used by (1)