summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-07 17:07:29 -0300
committerGitHub <noreply@github.com>2018-04-07 17:07:29 -0300
commitcd7e9d964281d700de691eb48eb4b597c8fd947a (patch)
treea21f197b45c6cc3cf222db16bb74e8535a750593 /doc
parent61d70fe47cfaa4efee505c7073aacfe34b66c217 (diff)
parent1fc85b87bd0542b82b1a8d51afdb3801d03d872b (diff)
Merge pull request #17583 from RandomShaper/enhance-uri-utils
Enhance uri utils
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/HTTPClient.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/HTTPClient.xml b/doc/classes/HTTPClient.xml
index 5bd7c4cd3e..018b548ef1 100644
--- a/doc/classes/HTTPClient.xml
+++ b/doc/classes/HTTPClient.xml
@@ -111,6 +111,12 @@
String queryString = httpClient.query_string_from_dict(fields)
returns:= "username=user&amp;password=pass"
[/codeblock]
+ Furthermore, if a key has a null value, only the key itself is added, without equal sign and value. If the value is an array, for each value in it a pair with the same key is added.
+ [codeblock]
+ var fields = {"single": 123, "not_valued": null, "multiple": [22, 33, 44]}
+ String queryString = httpClient.query_string_from_dict(fields)
+ returns:= "single=123&amp;not_valued&amp;multiple=22&amp;multiple=33&amp;multiple=44"
+ [/codeblock]
</description>
</method>
<method name="read_response_body_chunk">