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; | |||||
public: | public: | ||||
HTTPRPCRequestProcessor(Config &configIn) : config(configIn) {} | HTTPRPCRequestProcessor(Config &configIn, RPCServer &rpcServerIn) | ||||
: config(configIn), rpcServer(rpcServerIn) {} | |||||
bool ProcessHTTPRequest(HTTPRequest *request); | bool ProcessHTTPRequest(HTTPRequest *request); | ||||
}; | }; | ||||
/** | /** | ||||
* Start HTTP RPC subsystem. | * Start HTTP RPC subsystem. | ||||
* Precondition; HTTP and RPC has been started. | * Precondition; HTTP and RPC has been started. | ||||
*/ | */ | ||||
Show All 28 Lines |