diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-07-03 13:11:59 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-11-24 14:36:42 +0800 |
commit | c09ea8d45acdf02df30b658408137f2ca7be2533 (patch) | |
tree | 63d4352a3101286da56d57bd39ccd14e9e73eaeb /doc | |
parent | c5ab537617d9461964e67bb135bb0818efe21d58 (diff) |
Adds proxy support for HTTPClient
Also fixed a potential infinite loop when connecting to server.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/HTTPClient.xml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/classes/HTTPClient.xml b/doc/classes/HTTPClient.xml index a50983853d..e15b065744 100644 --- a/doc/classes/HTTPClient.xml +++ b/doc/classes/HTTPClient.xml @@ -173,6 +173,24 @@ Sends the body data raw, as a byte array and does not encode it in any way. </description> </method> + <method name="set_http_proxy"> + <return type="void" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" /> + <description> + Sets the proxy server for HTTP requests. + The proxy server is unset if [code]host[/code] is empty or [code]port[/code] is -1. + </description> + </method> + <method name="set_https_proxy"> + <return type="void" /> + <argument index="0" name="host" type="String" /> + <argument index="1" name="port" type="int" /> + <description> + Sets the proxy server for HTTPS requests. + The proxy server is unset if [code]host[/code] is empty or [code]port[/code] is -1. + </description> + </method> </methods> <members> <member name="blocking_mode_enabled" type="bool" setter="set_blocking_mode" getter="is_blocking_mode_enabled" default="false"> |