Module Webapi.FormData

Re-export from bs-fetch for convenience. To use, you will also need to add the bs-fetch package as a dependency.

To get the FormData of an HTML form, use Webapi.Dom.HtmlFormElement.data.

include module type of struct include Fetch.FormData end
module EntryValue = Fetch.FormData.EntryValue
module Iterator = Fetch.FormData.Iterator
val make : unit -> t
val append : string -> string -> t -> unit
val delete : string -> t -> unit
val get : string -> t -> EntryValue.t option
val getAll : string -> t -> EntryValue.t array
val set : string -> string -> t -> unit
val has : string -> t -> bool
val keys : t -> string Iterator.t
val values : t -> EntryValue.t Iterator.t
val appendObject : string -> < .. > Js.t -> ?filename:string -> t -> unit

This is for React Native compatibility purposes

val appendBlob : string -> Fetch.blob -> ?filename:string -> t -> unit
val appendFile : string -> Fetch.file -> ?filename:string -> t -> unit
val setObject : string -> < .. > Js.t -> ?filename:string -> t -> unit

This is for React Native compatibility purposes

val setBlob : string -> Fetch.blob -> ?filename:string -> t -> unit
val setFile : string -> Fetch.file -> ?filename:string -> t -> unit
val entries : t -> (string * EntryValue.t) Iterator.t
val makeWithHtmlFormElement : Dom.HtmlFormElement.t -> t