Changeset View
Changeset View
Standalone View
Standalone View
src/httprpc.h
Show All 11 Lines | |||||
#include <string> | #include <string> | ||||
class Config; | class Config; | ||||
class HTTPRequest; | class HTTPRequest; | ||||
class HTTPRPCRequestProcessor { | class HTTPRPCRequestProcessor { | ||||
private: | private: | ||||
Config &config; | Config &config; | ||||
RPCServer &rpcServer; | |||||
bool ProcessHTTPRequest(HTTPRequest *request); | bool ProcessHTTPRequest(HTTPRequest *request); | ||||
public: | public: | ||||
HTTPRPCRequestProcessor(Config &configIn) : config(configIn) {} | HTTPRPCRequestProcessor(Config &configIn, RPCServer &rpcServerIn) | ||||
: config(configIn), rpcServer(rpcServerIn) {} | |||||
static bool DelegateHTTPRequest(HTTPRPCRequestProcessor *requestProcessor, | static bool DelegateHTTPRequest(HTTPRPCRequestProcessor *requestProcessor, | ||||
HTTPRequest *request) { | HTTPRequest *request) { | ||||
return requestProcessor->ProcessHTTPRequest(request); | return requestProcessor->ProcessHTTPRequest(request); | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
Show All 31 Lines |