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.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h
index 9be23f9f0..8819202eb 100644
--- a/src/modules/httpd.h
+++ b/src/modules/httpd.h
@@ -3,21 +3,30 @@
#ifndef __HTTPD_H__
#define __HTTPD_H__
-HTTPRequest : public classbase
+#include <string>
+#include <sstream>
+
+class HTTPRequest : public classbase
{
protected:
std::string type;
std::string document;
std::string ipaddr;
+ std::stringstream* headers;
public:
- void* opaque;
+ void* sock;
+
+ HTTPRequest(const std::string &request_type, const std::string &uri, std::stringstream* hdr, void* opaque, const std::string &ip)
+ : type(request_type), document(uri), ipaddr(ip), headers(hdr), sock(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::stringstream* GetHeaders()
{
+ return headers;
}
std::string& GetType()
@@ -34,7 +43,7 @@ HTTPRequest : public classbase
{
return ipaddr;
}
-}
+};
#endif