summaryrefslogtreecommitdiffstats
path: root/core/io/http_client.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-10-26 23:29:59 +0200
committerGitHub <noreply@github.com>2017-10-26 23:29:59 +0200
commitb1b11ea41121c5f0812adc40ec17fbcf99b39e84 (patch)
treed98070367b5300f1e56bff25a77d70a9025a2b1f /core/io/http_client.cpp
parent89cec177a22ffaa53197c8d9b13bf0849fecbb8b (diff)
parentd1102cb37d4c299958c9aed0a5db5d62754753b2 (diff)
downloadredot-engine-b1b11ea41121c5f0812adc40ec17fbcf99b39e84.tar.gz
Merge pull request #12422 from eska014/httpclient-api
Remove HTTPClient::send_body_text and ::send_body_data
Diffstat (limited to 'core/io/http_client.cpp')
-rw-r--r--core/io/http_client.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp
index b8c0a2b616..46d52384e5 100644
--- a/core/io/http_client.cpp
+++ b/core/io/http_client.cpp
@@ -189,16 +189,6 @@ Error HTTPClient::request(Method p_method, const String &p_url, const Vector<Str
return OK;
}
-Error HTTPClient::send_body_text(const String &p_body) {
-
- return OK;
-}
-
-Error HTTPClient::send_body_data(const PoolByteArray &p_body) {
-
- return OK;
-}
-
bool HTTPClient::has_response() const {
return response_headers.size() != 0;
@@ -629,8 +619,6 @@ void HTTPClient::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_connection"), &HTTPClient::get_connection);
ClassDB::bind_method(D_METHOD("request_raw", "method", "url", "headers", "body"), &HTTPClient::request_raw);
ClassDB::bind_method(D_METHOD("request", "method", "url", "headers", "body"), &HTTPClient::request, DEFVAL(String()));
- ClassDB::bind_method(D_METHOD("send_body_text", "body"), &HTTPClient::send_body_text);
- ClassDB::bind_method(D_METHOD("send_body_data", "body"), &HTTPClient::send_body_data);
ClassDB::bind_method(D_METHOD("close"), &HTTPClient::close);
ClassDB::bind_method(D_METHOD("has_response"), &HTTPClient::has_response);