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

Function UnregisterHTTPHandler

src/httpserver.cpp:585–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
586{
587 std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin();
588 std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end();
589 for (; i != iend; ++i)
590 if (i->prefix == prefix && i->exactMatch == exactMatch)
591 break;
592 if (i != iend)
593 {
594 LogPrint("http", "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
595 pathHandlers.erase(i);
596 }
597}
598

Callers 2

StopRESTFunction · 0.85
StopHTTPRPCFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected