Pristine.Core.Querystring (Pristine v0.3.0)

Copy Markdown View Source

Query string encoder with configurable array and nested formats.

Summary

Types

array_format()

@type array_format() :: :comma | :repeat | :indices | :brackets

nested_format()

@type nested_format() :: :dots | :brackets

Functions

encode(params, opts \\ [])

@spec encode(map() | keyword(), keyword()) :: [{String.t(), String.t()}]

stringify(params, opts \\ [])

@spec stringify(map() | keyword(), keyword()) :: String.t()