summaryrefslogtreecommitdiffstats
path: root/scene/main/http_request.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2017-01-18 12:47:12 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2017-01-23 20:18:22 +0100
commit88a56ba783d36d52a1023759e69f026b1ae255b4 (patch)
tree635ced03366a40efff9ab0689836fa9bcf75c796 /scene/main/http_request.cpp
parent2fe4ef66991b483640f59873c22b3af671626ccc (diff)
downloadredot-engine-88a56ba783d36d52a1023759e69f026b1ae255b4.tar.gz
Remove set_ip_type from network classes (no longer needed)
- TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it)
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r--scene/main/http_request.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp
index 63a81a139d..436bf3e972 100644
--- a/scene/main/http_request.cpp
+++ b/scene/main/http_request.cpp
@@ -28,10 +28,6 @@
/*************************************************************************/
#include "http_request.h"
-void HTTPRequest::set_ip_type(IP::Type p_type) {
- client->set_ip_type(p_type);
-}
-
void HTTPRequest::_redirect_request(const String& p_new_url) {
@@ -539,7 +535,6 @@ int HTTPRequest::get_body_size() const{
void HTTPRequest::_bind_methods() {
- ClassDB::bind_method(_MD("set_ip_type","ip_type"),&HTTPRequest::set_ip_type);
ClassDB::bind_method(_MD("request","url","custom_headers","ssl_validate_domain","method","request_data"),&HTTPRequest::request,DEFVAL(PoolStringArray()),DEFVAL(true),DEFVAL(HTTPClient::METHOD_GET),DEFVAL(String()));
ClassDB::bind_method(_MD("cancel_request"),&HTTPRequest::cancel_request);