ankh v0.8.6 Ankh.HTTP.Query

Recursive HTTP query encode/decode to/from x-www-urlencoded form

This code was taken and adapted from Plug Plug.Conn.Query and Plug.Conn.Utils which are distributed under the Apache 2.0 license.

Link to this section Summary

Functions

Decodes the given binary. The binary is assumed to be encoded in "x-www-form-urlencoded" format. The format is decoded and then validated for proper UTF-8 encoding.

Encodes the given map or list of stuples.

Link to this section Types

Specs

query() :: binary()

Specs

t() :: map()

Link to this section Functions

Specs

decode(query()) :: t()

Decodes the given binary. The binary is assumed to be encoded in "x-www-form-urlencoded" format. The format is decoded and then validated for proper UTF-8 encoding.

Specs

encode(t()) :: query()

Encodes the given map or list of stuples.