Pages
Standard Library
Search
Entities
FormData
Functions
Returns a new FormData object copying all values from the given one and adding the given file with the given key.
FormData.empty()
|> FormData.addFile(
"key", File.fromString("Contents", "text.txt", "text/plain"))
Returns a new FormData object copying all values from the given one and adding the given string with the given key.
FormData.empty()
|> FormData.addString("key", "value")
Returns an empty FormData object.
FormData.empty()
|> FormData.addString("key", "value")
Returns the keys of a FormData object.
FormData.empty()
|> FormData.addString("key", "value")
|> FormData.keys() == ["key"]