MCPcopy Create free account
hub / github.com/ElementsProject/elements / RegisterHTTPHandler

Function RegisterHTTPHandler

src/httpserver.cpp:644–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644void 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
651void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
652{

Callers 2

StartRESTFunction · 0.85
StartHTTPRPCFunction · 0.85

Calls 2

HTTPPathHandlerClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected