aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/doc/src
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2017-10-23 12:02:16 +0200
committerPéter Dimitrov <[email protected]>2017-10-24 09:17:24 +0200
commitda11b15aef87f392a807b4756bf285160e15a194 (patch)
tree56d5179ef9316f10268824ef1ab6044ec617564d /lib/stdlib/doc/src
parentb439d19d38479d6264d906dd926a168c9c514da3 (diff)
downloadotp-da11b15aef87f392a807b4756bf285160e15a194.tar.gz
otp-da11b15aef87f392a807b4756bf285160e15a194.tar.bz2
otp-da11b15aef87f392a807b4756bf285160e15a194.zip
stdlib: Update supported separators (query string)
Update list of supported separators: - escaped_amp (default): "&amp;" - amp: "&" - semicolon: ";"
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r--lib/stdlib/doc/src/uri_string.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/stdlib/doc/src/uri_string.xml b/lib/stdlib/doc/src/uri_string.xml
index 496573ae2f..97b38ea93e 100644
--- a/lib/stdlib/doc/src/uri_string.xml
+++ b/lib/stdlib/doc/src/uri_string.xml
@@ -28,9 +28,10 @@
<rev>A</rev>
</header>
<module>uri_string</module>
- <modulesummary>RFC 3986 compliant URI processing functions.</modulesummary>
+ <modulesummary>URI processing functions.</modulesummary>
<description>
- <p>This module contains functions for parsing and handling RFC 3986 compliant URIs.</p>
+ <p>This module contains functions for parsing and handling URIs (RFC 3986) and
+ form-urlencoded query strings (RFC 1866).</p>
<p>A URI is an identifier consisting of a sequence of characters matching the syntax
rule named <em>URI</em> in <em>RFC 3986</em>.</p>
<p> The generic URI syntax consists of a hierarchical sequence of components referred
@@ -109,7 +110,7 @@
<c><anno>QueryList</anno></c>, a list of unescaped key-value pairs.
Media type <c>application/x-www-form-urlencoded</c> is defined in section
8.2.1 of <c>RFC 1866</c> (HTML 2.0). Reserved and unsafe characters, as
- defined by RFC 1738 (Uniform Resource Locators), are procent-encoded.
+ defined by RFC 1738 (Uniform Resource Locators), are percent-encoded.
</p>
<p><em>Example:</em></p>
<pre>
@@ -125,8 +126,7 @@
<desc>
<p>Same as <c>compose_query/1</c> but with an additional
<c><anno>Options</anno></c> parameter, that controls the type of separator used
- between key-value pairs. There are two supported separator types: <c>amp</c> (<![CDATA[&amp;]]>)
- and <c>semicolon</c> (;).</p>
+ between key-value pairs. There are three supported separator types: <c>amp</c> (<![CDATA[&]]>), <c>escaped_amp</c> (<![CDATA[&amp;]]>) and <c>semicolon</c> (;). If the parameter <c><anno>Options</anno></c> is empty, separator takes the default value (<c>escaped_amp</c>).</p>
<p><em>Example:</em></p>
<pre>
1> <input>uri_string:compose_query([{"foo bar","1"},{"city","örebro"}],</input>