qs_vals() = [{binary(), binary() | true}]
fix_path/1 | |
make_url/3 | construct an url from a base url, a path and a list of properties to give to the url. |
normalize/1 | Normalizes the encoding of a Url. |
parse_qs/1 | |
parse_url/1 | Parse an url and return a #hackney_url record. |
pathencode/1 | encode a URL path. |
qs/1 | encode query properties to binary. |
transport_scheme/1 | |
unparse_url/1 | |
urldecode/1 | Decode a URL encoded binary. |
urldecode/2 | Decode a URL encoded binary. |
urlencode/1 | URL encode a string binary. |
urlencode/2 | URL encode a string binary. |
fix_path(Path) -> any()
make_url(Url::binary(), Path::binary() | [binary()], Query::binary() | qs_vals()) -> binary()
construct an url from a base url, a path and a list of properties to give to the url.
normalize(Url) -> any()
Normalizes the encoding of a Url
parse_qs(Bin::binary()) -> qs_vals()
parse_url(URL::binary() | list()) -> hackney_url()
Parse an url and return a #hackney_url record.
pathencode(Bin::binary()) -> binary()
Equivalent to pathencode(Bin, []).
encode a URL path
qs(KVs::qs_vals()) -> binary()
encode query properties to binary
transport_scheme(X1) -> any()
unparse_url(Hackney_url) -> any()
urldecode(Bin::binary()) -> binary()
Equivalent to urldecode(Bin, crash).
Decode a URL encoded binary.
urldecode(Bin::binary(), OnError::crash | skip) -> binary()
Decode a URL encoded binary.
The second argument specifies how to handle percent characters that are not
followed by two valid hex characters. Use skip
to ignore such errors,
if crash
is used the function will fail with the reason badarg
.
urlencode(Bin::binary() | string()) -> binary()
URL encode a string binary.
urlencode(Bin::binary() | string(), Opts::[noplus | upper]) -> binary()
URL encode a string binary.
The noplus
option disables the default behaviour of quoting space
characters, \s
, as +
. The upper
option overrides the default behaviour
of writing hex numbers using lowecase letters to using uppercase letters
instead.
Generated by EDoc, Dec 7 2015, 13:14:08.