Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
struct evhttp_request *req; | struct evhttp_request *req; | ||||
bool replySent; | bool replySent; | ||||
public: | public: | ||||
HTTPRequest(struct evhttp_request *req); | HTTPRequest(struct evhttp_request *req); | ||||
~HTTPRequest(); | ~HTTPRequest(); | ||||
enum RequestMethod { UNKNOWN, GET, POST, HEAD, PUT }; | enum RequestMethod { UNKNOWN, GET, POST, HEAD, PUT, OPTIONS }; | ||||
/** Get requested URI. | /** Get requested URI. | ||||
*/ | */ | ||||
std::string GetURI(); | std::string GetURI(); | ||||
/** Get CService (address:ip) for the origin of the http request. | /** Get CService (address:ip) for the origin of the http request. | ||||
*/ | */ | ||||
CService GetPeer(); | CService GetPeer(); | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |