From 81dc712abfc5e93d996191178e555d0c6af3652d Mon Sep 17 00:00:00 2001 From: Luca Favatella Date: Mon, 5 Mar 2018 11:05:34 +0000 Subject: inets: refine types and doc of http_uri:parse options --- lib/inets/doc/src/http_uri.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/inets/doc/src/http_uri.xml') 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 @@ Option = {ipv6_host_with_brackets, boolean()} | {scheme_defaults, scheme_defaults()} | {fragment, boolean()} | - {scheme_validation_fun, fun()}] + {scheme_validation_fun, fun()} Result = {Scheme, UserInfo, Host, Port, Path, Query} | {Scheme, UserInfo, Host, Port, Path, Query, Fragment} Scheme = scheme() @@ -153,6 +153,13 @@ fun(SchemeStr :: string() | binary()) ->

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.

+
+ -- cgit v1.2.3