httpoison_form_data v0.1.0 FormData

This module contains the recursive traversal algorithm used to build properly formatted names for both multipart and urlencoded requests.

Summary

Functions

This function chooses the correct formatter and uses it in conjunction with the recursive name-formatting algorithm to produce the desired data structure

This function chooses the correct formatter and uses it in conjunction with the recursive name-formatting algorithm to produce the desired data structure

Functions

create(obj, formatter, output_opts \\ [])

Specs

create(obj :: keyword | map | struct, formatter :: atom, output_opts :: keyword(boolean)) ::
  {:ok, any} |
  {:error, String.t}

This function chooses the correct formatter and uses it in conjunction with the recursive name-formatting algorithm to produce the desired data structure.

The built-in formatters are Multipart and URLEncoded, but a 3rd-party formatter that is a behaviour of FormData.Formatter can be passed in as well.

create!(obj, formatter, output_opts \\ [])

Specs

create!(obj :: keyword | map | struct, formatter :: atom, output_opts :: keyword(boolean)) ::
  {:ok, any} |
  {:error, String.t}

This function chooses the correct formatter and uses it in conjunction with the recursive name-formatting algorithm to produce the desired data structure.

The built-in formatters are Multipart and URLEncoded, but a 3rd-party formatter that is a behaviour of FormData.Formatter can be passed in as well.