fixes to HTTPClient

-small unchunked files should work properly
-blocking mode should work properly
This commit is contained in:
Juan Linietsky
2015-02-11 07:57:39 -03:00
parent b4e1c1d717
commit 78a268c2eb
2 changed files with 39 additions and 10 deletions
+5 -1
View File
@@ -157,7 +157,10 @@ private:
static void _bind_methods();
StringArray _get_response_headers();
Dictionary _get_response_headers_as_dictionary();
ByteArray tmp_read;
int read_chunk_size;
Error _get_http_data(uint8_t* p_buffer, int p_bytes,int &r_received);
public:
@@ -185,6 +188,7 @@ public:
void set_blocking_mode(bool p_enable); //useful mostly if running in a thread
bool is_blocking_mode_enabled() const;
void set_read_chunk_size(int p_size);
Error poll();