Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xdg/vendor/types/deno.d.ts>FormData

Determine XDG Base Directory paths (OS/platform portable)
Latest
class FormData
implements DomIterable<string, FormDataEntryValue>
import { FormData } from "https://deno.land/x/xdg@v10.6.0/vendor/types/deno.d.ts";

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".

Constructors

new
FormData()

Methods

append(
name: string,
value: string | Blob,
fileName?: string,
): void
delete(name: string): void
entries(): IterableIterator<[string, FormDataEntryValue]>
forEach(callback: (
key: string,
parent: this,
) => void
, thisArg?: any
): void
get(name: string): FormDataEntryValue | null
getAll(name: string): FormDataEntryValue[]
has(name: string): boolean
keys(): IterableIterator<string>
set(
name: string,
value: string | Blob,
fileName?: string,
): void
values(): IterableIterator<string>
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>