You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Add http method and request data parameters
For HTTPRequest::request
(cherry picked from commit c53e5c555a)
This commit is contained in:
committed by
Rémi Verschelde
parent
49dd7b38bc
commit
4a9461fded
@@ -66,6 +66,8 @@ private:
|
||||
Vector<String> headers;
|
||||
bool validate_ssl;
|
||||
bool use_ssl;
|
||||
HTTPClient::Method method;
|
||||
String request_data;
|
||||
|
||||
bool request_sent;
|
||||
Ref<HTTPClient> client;
|
||||
@@ -114,7 +116,7 @@ protected:
|
||||
static void _bind_methods();
|
||||
public:
|
||||
|
||||
Error request(const String& p_url,const Vector<String>& p_custom_headers=Vector<String>(),bool p_ssl_validate_domain=true); //connects to a full url and perform request
|
||||
Error request(const String& p_url, const Vector<String>& p_custom_headers=Vector<String>(), bool p_ssl_validate_domain=true, HTTPClient::Method p_method=HTTPClient::METHOD_GET, const String& p_request_data=""); //connects to a full url and perform request
|
||||
void cancel_request();
|
||||
HTTPClient::Status get_http_client_status() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user