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

Function RegisterHTTPHandler

src/rpc/core/httpserver.cpp:642–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void RegisterHTTPHandler(const std::string& prefix, bool exactMatch,
643 const HTTPRequestHandler& handler) {
644 LogPrint(BCLog::RPC, "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
645 pathHandlers.push_back(HTTPPathHandler(prefix, exactMatch, handler));
646}
647
648void UnregisterHTTPHandler(const std::string& prefix, bool exactMatch) {
649 std::vector<HTTPPathHandler>::iterator i = pathHandlers.begin();

Callers 1

StartRPCServerFunction · 0.85

Calls 2

HTTPPathHandlerClass · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected