MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / RegisterHTTPHandler

Function RegisterHTTPHandler

src/httpserver.cpp:241–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void 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
248void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
249{

Callers 2

StartRESTFunction · 0.85
StartHTTPRPCFunction · 0.85

Calls 1

emplace_backMethod · 0.45

Tested by

no test coverage detected