From 27cfa1da6d35674f6cd169b103385a09c8d4c55a Mon Sep 17 00:00:00 2001
From: Luca Favatella
Type definitions that are related to URI:
Syntax according to the URI definition in RFC 3986, for example, "http://www.erlang.org/"
Example: http, https
Represents a file path or directory path
Scheme validation fun is to be defined as follows:
-fun(SchemeStr :: string() | unicode:unicode_binary()) ->
+fun(SchemeStr :: string() | binary()) ->
valid | {error, Reason :: term()}.
@@ -162,7 +162,7 @@ fun(SchemeStr :: string() | unicode:unicode_binary()) ->
Provides a list of the scheme and their default
--
cgit v1.2.3
From 81dc712abfc5e93d996191178e555d0c6af3652d Mon Sep 17 00:00:00 2001
From: Luca Favatella It is called before scheme string gets converted into scheme atom and
thus possible atom leak could be prevented The scheme portion of the URI gets converted into atom,
+ meaning that atom leak may occur. Specifying a scheme
+ validation fun is recommended unless the URI is already
+ sanitized.