MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / registerHandler

Method registerHandler

3ds/source/server.cpp:334–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void Server::registerHandler(const std::string& path, Server::HttpHandler handler)
335{
336 {
337 std::lock_guard<std::mutex> lock(handlersMutex);
338 handlers[path] = handler;
339 }
340 Logging::info("Registered HTTP handler for path {}", path);
341}
342
343void Server::unregisterHandler(const std::string& path)
344{

Callers

nothing calls this directly

Calls 1

infoFunction · 0.85

Tested by

no test coverage detected