Module cow_qs

Data Types

qs_vals()

qs_vals() = [{binary(), binary() | true}]

Function Index

parse_qs/1Parse an application/x-www-form-urlencoded string.
qs/1Build an application/x-www-form-urlencoded string.
urldecode/1Decode a percent encoded string (x-www-form-urlencoded rules).
urlencode/1Percent encode a string (x-www-form-urlencoded rules).

Function Details

parse_qs/1

parse_qs(B::binary()) -> qs_vals()

Parse an application/x-www-form-urlencoded string.

The percent decoding is inlined to greatly improve the performance by avoiding copying binaries twice (once for extracting, once for decoding) instead of just extracting the proper representation.

qs/1

qs(L::qs_vals()) -> binary()

Build an application/x-www-form-urlencoded string.

urldecode/1

urldecode(B) -> B

Decode a percent encoded string (x-www-form-urlencoded rules).

urlencode/1

urlencode(B) -> B

Percent encode a string (x-www-form-urlencoded rules).


Generated by EDoc