FormData
Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
interface FormData {
[[Symbol.iterator]]()
: IterableIterator<[string, FormDataEntryValue]>;
delete(
name: string)
: void;
entries()
: IterableIterator<[string, FormDataEntryValue]>;
forEach(
callback: (
value: FormDataEntryValue,
key: string,
parent: this,
) => void
,
thisArg?: any)
: void;
get(
name: string)
: FormDataEntryValue | null;
getAll(
name: string)
: FormDataEntryValue[];
has(
name: string)
: boolean;
keys()
: IterableIterator<string>;
values()
: IterableIterator<string>;
}
Methods
[[Symbol.iterator]]()
: IterableIterator<[string, FormDataEntryValue]>
delete(
name: string)
: void
entries()
: IterableIterator<[string, FormDataEntryValue]>
forEach(
callback: (
value: FormDataEntryValue,
key: string,
parent: this,
) => void
,
thisArg?: any)
: void
get(
name: string)
: FormDataEntryValue | null
getAll(
name: string)
: FormDataEntryValue[]
has(
name: string)
: boolean
keys()
: IterableIterator<string>
values()
: IterableIterator<string>
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/FormData