A browser-compatible FormData implementation (undici / fetch).

See also:

Constructor

new()

Methods

append(name:String, value:String):Void

append(name:String, value:Blob, ?filename:String):Void

Appends a new value onto an existing key, or adds the key if it does not exist.

delete(name:String):Void

Deletes a key/value pair.

forEach(callback:(EitherType<String, EitherType<Blob, File>>, String, FormData) ‑> Void, ?thisArg:Any):Void

get(name:String):Null<EitherType<String, EitherType<Blob, File>>>

Returns the first value associated with a given key.

getAll(name:String):Array<EitherType<String, EitherType<Blob, File>>>

Returns all values associated with a given key.

has(name:String):Bool

Returns whether a key exists.

set(name:String, value:String):Void

set(name:String, value:Blob, ?filename:String):Void

Sets a new value for an existing key, or adds the key if it does not exist.