aboutsummaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorPedro J. Estébanez2018-03-17 13:09:26 +0100
committerPedro J. Estébanez2018-03-27 19:18:32 +0200
commit8d8e9d54c859625277c7de977b361165c09b06b1 (patch)
tree6d8f0051b3598d21edd3c6d725e55c16f8e36855 /doc/classes
parentb76ee30917c63211ac9e94a21bebbddf518d169f (diff)
downloadgodot-8d8e9d54c859625277c7de977b361165c09b06b1.tar.gz
godot-8d8e9d54c859625277c7de977b361165c09b06b1.tar.zst
godot-8d8e9d54c859625277c7de977b361165c09b06b1.zip
Enhance HTTPClient.query_string_from_dict()
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 5bd7c4cd3..018b548ef 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">