httpoison_form_data v0.1.0 FormData.Formatters behaviour

This module defines the FormData.Formatters behaviour.

Summary

Callbacks

This function takes three arguments, name, value, and file and returns a list of the partially formatted data

This function takes the list output from FormData.Formatters.format and a keyword list of options and produces the end-result desired (for example, a string)

Callbacks

format(name, value, file)

Specs

format(name :: String.t, value :: String.t, file :: boolean) :: [any]

This function takes three arguments, name, value, and file and returns a list of the partially formatted data.

The List is an important part of the formatting process because it can easily be converted into a number of other formats (for example, a string) in the output function.

output(data, options)

Specs

output(data :: [any], options :: keyword(boolean)) :: any

This function takes the list output from FormData.Formatters.format and a keyword list of options and produces the end-result desired (for example, a string).