summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/HttpClient.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/HttpClient.h b/include/HttpClient.h
index b2b8d22..92fcb14 100644
--- a/include/HttpClient.h
+++ b/include/HttpClient.h
@@ -16,9 +16,12 @@ extern t_headers no_headers;
class HttpClient : public Task {
public:
- HttpClient(const String & url, Handle * out, int * http_code = 0, const String & fake_host = "", t_headers = no_headers);
+ HttpClient(const String & url, Handle * out, const String & fake_host = "", t_headers = no_headers);
virtual ~HttpClient();
String GetStatus();
+
+ t_headers reply_headers;
+ String reply;
protected:
virtual int Do() throw (GeneralException);
@@ -28,16 +31,18 @@ class HttpClient : public Task {
String url;
Handle * out;
- int * http_code_p;
String fake_host;
t_headers headers;
Socket Client;
- Buffer b;
+ Buffer b, b2;
- String host, uri;
+ String host, uri, status;
int http_code;
+
+ bool chunked;
+
Task * c;
};