Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | public: | ||||
void Interrupt() { | void Interrupt() { | ||||
LOCK(cs); | LOCK(cs); | ||||
running = false; | running = false; | ||||
cond.notify_all(); | cond.notify_all(); | ||||
} | } | ||||
}; | }; | ||||
struct HTTPPathHandler { | struct HTTPPathHandler { | ||||
HTTPPathHandler() {} | |||||
HTTPPathHandler(std::string _prefix, bool _exactMatch, | HTTPPathHandler(std::string _prefix, bool _exactMatch, | ||||
HTTPRequestHandler _handler) | HTTPRequestHandler _handler) | ||||
: prefix(_prefix), exactMatch(_exactMatch), handler(_handler) {} | : prefix(_prefix), exactMatch(_exactMatch), handler(_handler) {} | ||||
std::string prefix; | std::string prefix; | ||||
bool exactMatch; | bool exactMatch; | ||||
HTTPRequestHandler handler; | HTTPRequestHandler handler; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines |