Iterates every [name, value] pair in wire order — the enumeration
primitive for reading a form whose field names the reader does not know
ahead of time (the hand-rolled new URLSearchParams(body) iteration this
accessor replaces).
An iterator over the name/value pairs
Returns the FIRST value for a name, or undefined when the name is
absent — the web standard's get, with undefined (narrowable) in place
of null.
The form field name
The first value, or undefined
Returns every value for a name in wire order — the web standard's
getAll, so a repeated field (multi-select, multi-file) keeps the order
the client sent.
The returned array is the parse's own READ view, not a defensive copy:
mutating it mutates what later getAll calls return. Treat it as
read-only (the IResponse.snapshot() precedent — a copy would allocate
on every read of a value most readers never touch).
The form field name
The values, empty when the name is absent
A parsed form body: the read-only view
IRequest.formData?()resolves andparseFormBodyreturns.Named
FormBody, neverFormData, so it cannot shadow the global. The web standard's semantics are adopted; the write side (set/append/delete) is not — a request body is a fact about the request, not a collection a handler edits.Example
Since
0.6.0