]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/httpd.h
Event class for m_httpd.cpp
[user/henk/code/inspircd.git] / src / modules / httpd.h
1 #include "base.h"
2
3 #ifndef __HTTPD_H__
4 #define __HTTPD_H__
5
6 HTTPRequest : public classbase
7 {
8  protected:
9
10         std::string type;
11         std::string document;
12         std::string ipaddr;
13
14  public:
15
16         void* opaque;
17
18         HTTPRequest(const std::string &request_type, const std::string &uri, void* opaque, const std::string &ip)
19                 : type(request_type), document(uri), ipaddr(ip)
20         {
21         }
22
23         std::string& GetType()
24         {
25                 return type;
26         }
27
28         std::string& GetURI()
29         {
30                 return document;
31         }
32
33         std::string& GetIP()
34         {
35                 return ipaddr;
36         }
37 }
38
39 #endif
40
41 //httpr(request_type,uri,headers,this,this->GetIP());
42