http_uri(3erl) | Erlang Module Definition | http_uri(3erl) |
http_uri - Old URI utility module, use uri_string instead
This module is deprecated since OTP 23. Use the module uri_string to properly handle URIs, this is the recommended module since OTP 21.
Type definitions that are used more than once in this module:
boolean() = true | false
string() = list of ASCII characters
Type definitions that are related to URI:
For more information about URI, see RFC 3986.
decode(HexEncodedURI) -> URI
Types:
Decodes a possibly hexadecimal encoded URI.
encode(URI) -> HexEncodedURI
Types:
Encodes a hexadecimal encoded URI.
parse(URI) -> {ok, Result} | {error, Reason}
parse(URI, Options) -> {ok, Result} | {error, Reason}
Types:
Parses a URI. If no scheme defaults are provided, the value of the scheme_defaults function is used.
When parsing a URI with an unknown scheme (that is, a scheme not found in the scheme defaults), a port number must be provided, otherwise the parsing fails.
If the fragment option is true, the URI fragment is returned as part of the parsing result, otherwise it is ignored.
Scheme validation fun is to be defined as follows:
fun(SchemeStr :: string() | binary()) -> valid | {error, Reason :: term()}.
It is called before scheme string gets converted into scheme atom and thus possible atom leak could be prevented
scheme_defaults() -> SchemeDefaults
Types:
Provides a list of the scheme and their default port numbers supported (by default) by this utility.
inets 7.3.2 | Ericsson AB |