summaryrefslogtreecommitdiff
path: root/src/modules/httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/httpd.h')
-rw-r--r--src/modules/httpd.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h
new file mode 100644
index 000000000..9be23f9f0
--- /dev/null
+++ b/src/modules/httpd.h
@@ -0,0 +1,42 @@
+#include "base.h"
+
+#ifndef __HTTPD_H__
+#define __HTTPD_H__
+
+HTTPRequest : public classbase
+{
+ protected:
+
+ std::string type;
+ std::string document;
+ std::string ipaddr;
+
+ public:
+
+ void* opaque;
+
+ HTTPRequest(const std::string &request_type, const std::string &uri, void* opaque, const std::string &ip)
+ : type(request_type), document(uri), ipaddr(ip)
+ {
+ }
+
+ std::string& GetType()
+ {
+ return type;
+ }
+
+ std::string& GetURI()
+ {
+ return document;
+ }
+
+ std::string& GetIP()
+ {
+ return ipaddr;
+ }
+}
+
+#endif
+
+//httpr(request_type,uri,headers,this,this->GetIP());
+