aboutsummaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorHein-Pieter van Braam2018-05-13 21:11:42 +0200
committerGitHub2018-05-13 21:11:42 +0200
commitbcb38393a58af00bc53c2fdc4797ef4faa6006ff (patch)
tree3375466d3cf98106dd059eb36e3101479189c74f /doc/classes
parent1905e1c8a2ea4cb891afef897488e13fda6e39a3 (diff)
parenta9ec1e39136878414c264d436866a0bc47e2c9df (diff)
downloadgodot-bcb38393a58af00bc53c2fdc4797ef4faa6006ff.tar.gz
godot-bcb38393a58af00bc53c2fdc4797ef4faa6006ff.tar.zst
godot-bcb38393a58af00bc53c2fdc4797ef4faa6006ff.zip
Merge pull request #18157 from RandomShaper/improve-uri-utils-3.0
Improve/fix URI utils (3.0)
Diffstat (limited to 'doc/classes')
-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 5627f585e..3f0668ba0 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&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&not_valued&multiple=22&multiple=33&multiple=44"
+ [/codeblock]
</description>
</method>
<method name="read_response_body_chunk">