Baseline Widely available
Note: This feature is available in Web Workers.
The formData()
method of the Response
interface takes a Response
stream and reads it to completion. It returns a promise that resolves with a FormData
object.
Note: This is mainly relevant to service workers. If a user submits a form and a service worker intercepts the request, you could for example call formData()
on it to obtain a key-value map, modify some fields, then send the form onwards to the server (or use it locally).
None.
Return valueA Promise
that resolves with a FormData
object.
DOMException
AbortError
The request was aborted.
TypeError
Thrown for one of the following reasons:
Content-Encoding
header is incorrect).Content-Type
headers included in the response.FormData
object.TBD.
Specifications Browser compatibility See alsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3