summaryrefslogtreecommitdiff
path: root/src/modules/httpd.h
blob: 9be23f9f00709d99e8fda9cd1ec24aa0479c7087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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());