]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/httpclient.h
dz is determined to crash your ircd :P
[user/henk/code/inspircd.git] / src / modules / httpclient.h
index 181c58b6be8c61689670c00ffc2d3989e656e87f..c5e84261f770b30e54e5ff80cc0e743761113f29 100644 (file)
@@ -1,3 +1,16 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
 #include "base.h"
 
 #ifndef HTTPCLIENT_H__
@@ -29,6 +42,10 @@ class HTTPClientRequest : public Request
                Headers["Accept"] = "*/*";
        }
 
+       HTTPClientRequest() : Request(NULL, NULL, HTTP_CLIENT_REQUEST)
+       {
+       }
+
        const std::string &GetURL()
        {
                return url;
@@ -65,7 +82,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;