|
|||
|
|||
|
#include <httpd.h>
Inheritance diagram for HTTPRequest:


Public Member Functions | |
| HTTPRequest (const std::string &request_type, const std::string &uri, HTTPHeaders *hdr, void *opaque, const std::string &ip, const std::string &pdata) | |
| Initialize HTTPRequest. | |
| std::string & | GetPostData () |
| Get the post data (request content). | |
| std::string & | GetType () |
| Get the request type. | |
| std::string & | GetURI () |
| Get URI. | |
| std::string & | GetIP () |
| Get IP address of requester. | |
Public Attributes | |
| HTTPHeaders * | headers |
| int | errorcode |
| void * | sock |
| A socket pointer, which you must return in your HTTPDocument class if you reply to this request. | |
Protected Attributes | |
| std::string | type |
| std::string | document |
| std::string | ipaddr |
| std::string | postdata |
It will be sent to all modules as the data section of an Event.
Definition at line 101 of file httpd.h.
|
||||||||||||||||||||||||||||
|
Initialize HTTPRequest. This constructor is called by m_httpd.so to initialize the class.
|
|
|
Get IP address of requester. The requesting system's ip address will be returned.
Definition at line 164 of file httpd.h. References ipaddr. Referenced by ModuleHTTPAccessList::OnEvent(). |
|
|
Get the post data (request content). All post data will be returned, including carriage returns and linefeeds.
Definition at line 137 of file httpd.h. References postdata. Referenced by ModuleRpcJson::OnEvent(). |
|
|
Get the request type. Any request type can be intercepted, even ones which are invalid in the HTTP/1.1 spec.
Definition at line 146 of file httpd.h. References type. |
|
|
Get URI. The URI string (URL minus hostname and scheme) will be provided by this function.
Definition at line 155 of file httpd.h. References document. Referenced by ModuleRpcJson::OnEvent(), ModuleHttpStats::OnEvent(), and ModuleHTTPAccessList::OnEvent(). |
|
|
Definition at line 105 of file httpd.h. Referenced by GetURI(). |
|
|
|
|
|
Definition at line 111 of file httpd.h. Referenced by ModuleHTTPAccessList::OnEvent(). |
|
|
Definition at line 106 of file httpd.h. Referenced by GetIP(). |
|
|
Definition at line 107 of file httpd.h. Referenced by GetPostData(). |
|
|
A socket pointer, which you must return in your HTTPDocument class if you reply to this request.
Definition at line 117 of file httpd.h. Referenced by ModuleHTTPAccessList::BlockAccess(), ModuleRpcJson::OnEvent(), and ModuleHttpStats::OnEvent(). |
|
|
Definition at line 104 of file httpd.h. Referenced by GetType(). |