summaryrefslogtreecommitdiff
path: root/src/modules/httpd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 13:15:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 13:15:55 +0000
commit994c70862fd98531d72f3604b54f56e1a90ac82c (patch)
tree8f1d5f150ca0ee65ce8f7d2ef314f6a8f3486325 /src/modules/httpd.h
parent3f80008ba387b1e1e9e360f047fd6d1684c85d4c (diff)
Craqbusters
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4326 e03df62e-2008-0410-955e-edbf42e46eb7
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