| 239 | } |
| 240 | |
| 241 | void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler) |
| 242 | { |
| 243 | LogDebug(BCLog::HTTP, "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch); |
| 244 | LOCK(g_httppathhandlers_mutex); |
| 245 | pathHandlers.emplace_back(prefix, exactMatch, handler); |
| 246 | } |
| 247 | |
| 248 | void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch) |
| 249 | { |
no test coverage detected