Merge pull request #18157 from RandomShaper/improve-uri-utils-3.0
Improve/fix URI utils (3.0)
This commit is contained in:
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user