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

Function UnregisterHTTPHandler

src/httpserver.cpp:659–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
660{
661 std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin();
662 std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end();
663 for (; i != iend; ++i)
664 if (i->prefix == prefix && i->exactMatch == exactMatch)
665 break;
666 if (i != iend)
667 {
668 LogPrint(BCLog::HTTP, "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
669 pathHandlers.erase(i);
670 }
671}
672
673std::string urlDecode(const std::string &urlEncoded) {
674 std::string res;

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