FormData
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1621
The FormData interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FormData():
FormData
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1622
Returns
Section titled “Returns”FormData
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
IterableIterator<[string,string]>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1686
Returns
Section titled “Returns”IterableIterator<[string, string]>
append()
Section titled “append()”Call Signature
Section titled “Call Signature”append(
name,value):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1628
The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”append(
name,value,filename?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1634
The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.
Parameters
Section titled “Parameters”string
filename?
Section titled “filename?”string
Returns
Section titled “Returns”void
delete()
Section titled “delete()”delete(
name):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1640
The delete() method of the FormData interface deletes a key and its value(s) from a FormData object.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
entries()
Section titled “entries()”entries():
IterableIterator<[string,string]>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1672
Returns
Section titled “Returns”IterableIterator<[string, string]>
forEach()
Section titled “forEach()”forEach<
This>(callback,thisArg?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1677
Type Parameters
Section titled “Type Parameters”This = unknown
Parameters
Section titled “Parameters”callback
Section titled “callback”(this, value, key, parent) => void
thisArg?
Section titled “thisArg?”This
Returns
Section titled “Returns”void
get(
name):null|string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1646
The get() method of the FormData interface returns the first value associated with a given key from within a FormData object.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”null | string
getAll()
Section titled “getAll()”getAll(
name):string[]
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1652
The getAll() method of the FormData interface returns all the values associated with a given key from within a FormData object.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
has(
name):boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1658
The has() method of the FormData interface returns whether a FormData object contains a certain key.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
keys()
Section titled “keys()”keys():
IterableIterator<string>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1674
Returns
Section titled “Returns”IterableIterator<string>
Call Signature
Section titled “Call Signature”set(
name,value):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1664
The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”set(
name,value,filename?):void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1670
The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
Parameters
Section titled “Parameters”string
filename?
Section titled “filename?”string
Returns
Section titled “Returns”void
values()
Section titled “values()”values():
IterableIterator<string|File>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1676
Returns
Section titled “Returns”IterableIterator<string | File>