Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.h
Show All 34 Lines | |||||
bool StartHTTPServer(); | bool StartHTTPServer(); | ||||
/** 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 | |||||
* logCategories if libevent doesn't support debug logging.*/ | |||||
Fabien: Nit: layout
```
/**
* Lorem ipsum dolor sit amet ...
* [...]
*/
``` | |||||
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; | ||||
/** | /** | ||||
* Register handler for prefix. | * Register handler for prefix. | ||||
* If multiple handlers match a prefix, the first-registered one will | * If multiple handlers match a prefix, the first-registered one will | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |
Nit: layout