def form.check.type

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

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

241# the plan once its content types are checked
242def form.check.type(+b: String, ps: List<&2, Part>, bad: Bool) -> Plan:
243  match bad:
244    case True{}:
245      NoPlan{"a file part's content type holds a CR or LF"}
246    case False{}:
247      Plan{form.type(b), form.parts(b, ps)}

Uses (7)

Used by (1)