Skip to content

FormData

Types

formDataEntryValue

type formDataEntryValue = FormDataEntryValue.t

t

type t = FetchTypes.formData = {}

Values

append

let append: (t, ~name: string, ~value: string) => unit

Parameters

t string string

Return type

unit

appendBlob

let appendBlob: (
t,
~name: string,
~blobValue: Blob.t,
~filename: string=?,
) => unit

Parameters

t string Blob.t option< string >

Return type

unit

delete

let delete: (t, string) => unit

Parameters

t string

Return type

unit

entries

let entries: t => Iterator.t<(string, formDataEntryValue)>

Parameters

t

Return type

Stdlib.Iterator.t

get

let get: (t, string) => null<formDataEntryValue>

Parameters

t string

Return type

Stdlib.null< formDataEntryValue >

getAll

let getAll: (t, string) => array<formDataEntryValue>

Parameters

t string

Return type

array< formDataEntryValue >

has

let has: (t, string) => bool

Parameters

t string

Return type

bool

keys

let keys: t => Iterator.t<string>

Parameters

t

Return type

Stdlib.Iterator.t< string >

make

let make: (~form: 'form=?, ~submitter: 'submitter=?) => t

Parameters

option option

Return type

t

set

let set: (t, ~name: string, ~value: string) => unit

Parameters

t string string

Return type

unit

setBlob

let setBlob: (
t,
~name: string,
~blobValue: Blob.t,
~filename: string=?,
) => unit

Parameters

t string Blob.t option< string >

Return type

unit