Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.h
Show All 36 Lines | |||||
/** Interrupt HTTP server threads */ | /** Interrupt HTTP server threads */ | ||||
void InterruptHTTPServer(); | void InterruptHTTPServer(); | ||||
/** Stop HTTP server */ | /** Stop HTTP server */ | ||||
void StopHTTPServer(); | void StopHTTPServer(); | ||||
/** | /** | ||||
* Change logging level for libevent. Removes BCLog::LIBEVENT from | * Change logging level for libevent. Removes BCLog::LIBEVENT from | ||||
* logCategories if libevent doesn't support debug logging. | * log categories if libevent doesn't support debug logging. | ||||
*/ | */ | ||||
bool UpdateHTTPServerLogging(bool enable); | bool UpdateHTTPServerLogging(bool enable); | ||||
/** Handler for requests to a certain HTTP path */ | /** Handler for requests to a certain HTTP path */ | ||||
typedef std::function<bool(Config &config, HTTPRequest *req, | typedef std::function<bool(Config &config, HTTPRequest *req, | ||||
const std::string &)> | const std::string &)> | ||||
HTTPRequestHandler; | HTTPRequestHandler; | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |