MCPcopy Create free account
hub / github.com/LUX-Core/lux / RegisterHTTPHandler

Function RegisterHTTPHandler

src/httpserver.cpp:764–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762}
763
764void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
765{
766 LogPrint("http", "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);
767 pathHandlers.push_back(HTTPPathHandler(prefix, exactMatch, handler));
768}
769
770void UnregisterHTTPHandler(const std::string &prefix, bool exactMatch)
771{

Callers 2

StartRESTFunction · 0.85
StartHTTPRPCFunction · 0.85

Calls 3

LogPrintFunction · 0.85
HTTPPathHandlerClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected