Copyright © 2016
Authors: Gavin M. Roy (gavinmroy@gmail.com).
authority() = {userinfo(), host(), tcp_port()}
fragment() = string() | undefined
host() = string()
password() = string() | undefined
path() = string()
query() = [tuple() | string()] | undefined
scheme() = http | https | atom()
tcp_port() = integer()
uri() = {scheme(), authority(), path(), query(), fragment()}
url() = {scheme(), username(), password(), host(), tcp_port(), path(), query(), fragment()}
userinfo() = {username(), password()} | undefined
username() = string() | undefined
build/1 | Build a URI. |
parse/1 | Parse a URI. |
parse/2 | Parse a URI, returning the result as either a uri() or url() . |
percent_decode/1 | Decode a percent encoded string value. |
percent_encode/1 | Percent encode a string value. |
plus_decode/1 | Decode a percent encoded string value that uses pluses for spaces. |
plus_encode/1 | Percent encode a string value similar to encode/1, but encodes spaces with a
plus (+ ) instead of %20 . |
Build a URI
parse(Value :: string()) -> uri()
Parse a URI
parse(Value :: string(), Return :: uri | url) -> uri()
Parse a URI, returning the result as either a uri()
or url()
.
percent_decode(Value :: string()) -> string()
Decode a percent encoded string value.
percent_encode(Value :: string()) -> string()
Percent encode a string value.
plus_decode(Value :: string()) -> string()
Decode a percent encoded string value that uses pluses for spaces.
Note: The use of plus for space is defined in RFC-1630 but does not appear in RFC-3986.plus_encode(Value :: string()) -> string()
Percent encode a string value similar to encode/1, but encodes spaces with a
plus (+
) instead of %20
. This function can be used for encoding query arguments.
Generated by EDoc, Jan 22 2016, 10:34:52.