classref: Sync with current master branch (99a8ab7)

This commit is contained in:
Godot Organization
2024-12-28 03:20:51 +00:00
parent 1cfa7d8e0a
commit 7704954857
22 changed files with 146 additions and 88 deletions

View File

@@ -1092,7 +1092,7 @@ To create a POST request with query strings to push to the server, do:
var fields = new Godot.Collections.Dictionary { { "username", "user" }, { "password", "pass" } };
string queryString = new HttpClient().QueryStringFromDict(fields);
string[] headers = { "Content-Type: application/x-www-form-urlencoded", $"Content-Length: {queryString.Length}" };
string[] headers = ["Content-Type: application/x-www-form-urlencoded", $"Content-Length: {queryString.Length}"];
var result = new HttpClient().Request(HttpClient.Method.Post, "index.php", headers, queryString);