Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.h
Show All 26 Lines | |||||
*/ | */ | ||||
bool InitHTTPServer(Config &config); | bool InitHTTPServer(Config &config); | ||||
/** | /** | ||||
* Start HTTP server. | * Start HTTP server. | ||||
* This is separate from InitHTTPServer to give users race-condition-free time | * This is separate from InitHTTPServer to give users race-condition-free time | ||||
* to register their handlers between InitHTTPServer and StartHTTPServer. | * to register their handlers between InitHTTPServer and StartHTTPServer. | ||||
*/ | */ | ||||
bool StartHTTPServer(); | void StartHTTPServer(); | ||||
/** Interrupt HTTP server threads */ | /** Interrupt HTTP server threads */ | ||||
void InterruptHTTPServer(); | void InterruptHTTPServer(); | ||||
/** Stop HTTP server */ | /** Stop HTTP server */ | ||||
void StopHTTPServer(); | void StopHTTPServer(); | ||||
/** Handler for requests to a certain HTTP path */ | /** Handler for requests to a certain HTTP path */ | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |