diff options
| author | Kazuo256 | 2016-08-31 17:59:09 -0300 |
|---|---|---|
| committer | Rémi Verschelde | 2016-09-18 23:05:40 +0200 |
| commit | 4a9461fded6b0985e275c6750f4df0d6debaa42a (patch) | |
| tree | 86be4925dde10ae75a75e73649110d662c85e4e4 /scene/main/http_request.h | |
| parent | 49dd7b38bc9e20e6adf9fd863b4f653a09e29175 (diff) | |
| download | godot-4a9461fded6b0985e275c6750f4df0d6debaa42a.tar.gz godot-4a9461fded6b0985e275c6750f4df0d6debaa42a.tar.zst godot-4a9461fded6b0985e275c6750f4df0d6debaa42a.zip | |
Diffstat (limited to 'scene/main/http_request.h')
| -rw-r--r-- | scene/main/http_request.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/main/http_request.h b/scene/main/http_request.h index 8dd433982..705799f04 100644 --- a/scene/main/http_request.h +++ b/scene/main/http_request.h @@ -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; |
