Expand description
Provides a simplified (and incomplete) interface to the FormData
Web API,
in order to facilitate the creation of multipart request bodies for seed’s
Fetch API.
Example
let form_data = FormData::new()
.with_str("first-name", "Bob")
.with_str("last-name", "Jones");
Request::new("/api/")
.method(Method::Post)
.form_data(form_data)
.fetch()
See MDN for details on the behavior of the underlying API.