diff options
author | jonyrock <ilms@live.ru> | 2014-05-01 20:15:28 +0400 |
---|---|---|
committer | jonyrock <ilms@live.ru> | 2014-05-01 20:15:28 +0400 |
commit | 209eaf6fa06eba8a05e5222bdab418cd0f20c91c (patch) | |
tree | 94eac56be6ad254a7c09e13d5e14bd843626232c /core/io/http_client.h | |
parent | 34aea718b11e105d30c938ad34e474b1bd8b5d63 (diff) | |
parent | 6572d5128856b2ec55a2c417c92e584899f4906f (diff) |
Merge remote-tracking branch 'upstream/master' into pair_symbols_tool
Diffstat (limited to 'core/io/http_client.h')
-rw-r--r-- | core/io/http_client.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/io/http_client.h b/core/io/http_client.h index 2f22ba1fde..09ad64f48a 100644 --- a/core/io/http_client.h +++ b/core/io/http_client.h @@ -126,6 +126,8 @@ public: STATUS_REQUESTING, // request in progress STATUS_BODY, // request resulted in body, which must be read STATUS_CONNECTION_ERROR, + STATUS_SSL_HANDSHAKE_ERROR, + }; private: @@ -134,6 +136,9 @@ private: IP::ResolverID resolving; int conn_port; String conn_host; + bool ssl; + bool ssl_verify_host; + bool blocking; Vector<uint8_t> response_str; @@ -157,7 +162,7 @@ public: Error connect_url(const String& p_url); //connects to a full url and perform request - Error connect(const String &p_host,int p_port); + Error connect(const String &p_host,int p_port,bool p_ssl=false,bool p_verify_host=true); void set_connection(const Ref<StreamPeer>& p_connection); @@ -177,6 +182,10 @@ public: ByteArray read_response_body_chunk(); // can't get body as partial text because of most encodings UTF8, gzip, etc. + void set_blocking_mode(bool p_enable); //useful mostly if running in a thread + bool is_blocking_mode_enabled() const; + + Error poll(); HTTPClient(); |