Skip to main content

Module form_data

Module form_data 

Source
Expand description

WHATWG FormData (spec subset, no deps; multipart serialization studied from the read-only llrt reference). append/set/get/ getAll/has/delete/keys/values/entries/forEach; string, Blob or File values. entries/keys/values/[Symbol.iterator] return real live iterators (see super::js_iterator). A file entry reads back as a File carrying the filename it was stored under, and appending a File supplies that filename without repeating it. The class holds entries and nothing else: a host that puts a FormData on the wire reads FormDataJs::entries_slice and serializes with its own multipart writer, and hands parsed bodies back through FormDataJs::from_entries.

Structs§

FormDataJs

Enums§

FormEntry
One entry’s value: a string, or a file with the name and type it was stored under. Public because the multipart bridge in the host crate converts between this and its own wire types.