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

Function RegisterHTTPHandler

src/httpserver.cpp:579–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
580{
581 LogPrint("http", "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
582 pathHandlers.push_back(HTTPPathHandler(prefix, exactMatch, handler));
583}
584
585void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
586{

Callers 2

StartRESTFunction · 0.85
StartHTTPRPCFunction · 0.85

Calls 2

HTTPPathHandlerClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected