summaryrefslogtreecommitdiff
path: root/src/modules/httpclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/httpclient.h')
-rw-r--r--src/modules/httpclient.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/httpclient.h b/src/modules/httpclient.h
index 181c58b6b..045e8db8a 100644
--- a/src/modules/httpclient.h
+++ b/src/modules/httpclient.h
@@ -29,6 +29,10 @@ class HTTPClientRequest : public Request
Headers["Accept"] = "*/*";
}
+ HTTPClientRequest() : Request(NULL, NULL, HTTP_CLIENT_REQUEST)
+ {
+ }
+
const std::string &GetURL()
{
return url;
@@ -65,7 +69,11 @@ class HTTPClientResponse : public Request
: Request(src, target, HTTP_CLIENT_RESPONSE), url(url), response(response), responsestr(responsestr)
{
}
-
+
+ HTTPClientResponse() : Request(NULL, NULL, HTTP_CLIENT_RESPONSE)
+ {
+ }
+
void SetData(const std::string &ndata)
{
data = ndata;