| 642 | } |
| 643 | |
| 644 | void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler) |
| 645 | { |
| 646 | LogPrint(BCLog::HTTP, "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch); |
| 647 | LOCK(g_httppathhandlers_mutex); |
| 648 | pathHandlers.push_back(HTTPPathHandler(prefix, exactMatch, handler)); |
| 649 | } |
| 650 | |
| 651 | void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch) |
| 652 | { |
no test coverage detected