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

Function UnregisterHTTPHandler

src/rpc/core/httpserver.cpp:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void UnregisterHTTPHandler(const std::string& prefix, bool exactMatch) {
649 std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin();
650 std::vector<HTTPPathHandler>::iterator iend = pathHandlers.end();
651 for (; i != iend; ++i)
652 if (i->prefix == prefix && i->exactMatch == exactMatch) break;
653 if (i != iend) {
654 LogPrint(BCLog::RPC, "Unregistering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
655 pathHandlers.erase(i);
656 }
657}
658
659std::string urlDecode(const std::string& urlEncoded) {
660 std::string res;

Callers 1

StopRPCServerFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected