httpoison_form_data v0.1.3 FormData.Formatters.Multipart
Link to this section Summary
Functions
The Multipart output function wraps the output of format
in a structure
denoting to HTTPoison (and hackney) that the data to be submitted is
multipart
Link to this section Types
Link to this type
entry()
entry() :: {entry_type(), path_value(), {form_data(), [metadata(), ...]}, []}
Link to this section Functions
Link to this function
output(stream, opts)
output(stream :: Enum.t(), _opts :: any()) :: FormData.Formatters.Multipart.t()
The Multipart output function wraps the output of format
in a structure
denoting to HTTPoison (and hackney) that the data to be submitted is
multipart.
Examples
iex> FormData.Formatters.Multipart.output([{:key, "one"}], [])
{ :multipart, [{ "", "one", { "form-data", [ {"name", "\"key\""} ] }, [] }] }