aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/doc
diff options
context:
space:
mode:
authorLuca Favatella <[email protected]>2018-03-05 11:05:34 +0000
committerLuca Favatella <[email protected]>2018-03-05 11:36:17 +0000
commit81dc712abfc5e93d996191178e555d0c6af3652d (patch)
tree14406681f03e1f27aedae6ae63ee4cd7f47cd36b /lib/inets/doc
parent27cfa1da6d35674f6cd169b103385a09c8d4c55a (diff)
downloadotp-81dc712abfc5e93d996191178e555d0c6af3652d.tar.gz
otp-81dc712abfc5e93d996191178e555d0c6af3652d.tar.bz2
otp-81dc712abfc5e93d996191178e555d0c6af3652d.zip
inets: refine types and doc of http_uri:parse options
Diffstat (limited to 'lib/inets/doc')
-rw-r--r--lib/inets/doc/src/http_uri.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/inets/doc/src/http_uri.xml b/lib/inets/doc/src/http_uri.xml
index 97be292d87..f57214a7ce 100644
--- a/lib/inets/doc/src/http_uri.xml
+++ b/lib/inets/doc/src/http_uri.xml
@@ -118,7 +118,7 @@
<v>Option = {ipv6_host_with_brackets, boolean()} |
{scheme_defaults, scheme_defaults()} |
{fragment, boolean()} |
- {scheme_validation_fun, fun()}]</v>
+ {scheme_validation_fun, fun()}</v>
<v>Result = {Scheme, UserInfo, Host, Port, Path, Query} |
{Scheme, UserInfo, Host, Port, Path, Query, Fragment}</v>
<v>Scheme = scheme()</v>
@@ -153,6 +153,13 @@ fun(SchemeStr :: string() | binary()) ->
<p>It is called before scheme string gets converted into scheme atom and
thus possible atom leak could be prevented</p>
+ <warning>
+ <p>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.</p>
+ </warning>
+
<marker id="encode"></marker>
</desc>
</func>