Remove redundant info on the enum types used

This commit is contained in:
Haoyu Qiu 2025-05-08 11:56:10 +08:00
parent 1b37dacc18
commit 1e82bafa3a
144 changed files with 359 additions and 361 deletions

View file

@ -142,9 +142,9 @@
<param index="2" name="headers" type="PackedStringArray" />
<param index="3" name="body" type="String" default="&quot;&quot;" />
<description>
Sends a request to the connected host.
Sends an HTTP request to the connected host with the given [param method].
The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
[param headers] are HTTP request headers.
To create a POST request with query strings to push to the server, do:
[codeblocks]
[gdscript]
@ -170,9 +170,9 @@
<param index="2" name="headers" type="PackedStringArray" />
<param index="3" name="body" type="PackedByteArray" />
<description>
Sends a raw request to the connected host.
Sends a raw HTTP request to the connected host with the given [param method].
The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
[param headers] are HTTP request headers.
Sends the body data raw, as a byte array and does not encode it in any way.
</description>
</method>