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

Method registerHandler

3ds/source/server.cpp:349–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void Server::registerHandler(const std::string& path, Server::HttpHandler handler)
350{
351 {
352 std::lock_guard<std::mutex> lock(handlersMutex);
353 handlers[path] = handler;
354 }
355 Logging::info("Registered HTTP handler for path {}", path);
356}
357
358void Server::unregisterHandler(const std::string& path)
359{

Callers

nothing calls this directly

Calls 1

infoFunction · 0.50

Tested by

no test coverage detected