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

Method registerHandler

switch/source/server.cpp:373–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void Server::registerHandler(const std::string& path, Server::HttpHandler handler)
374{
375 {
376 std::lock_guard<std::mutex> lock(handlersMutex);
377 handlers[path] = handler;
378 }
379 Logging::info("Registered HTTP handler for path {}", path);
380}
381
382void Server::unregisterHandler(const std::string& path)
383{

Callers

nothing calls this directly

Calls 1

infoFunction · 0.50

Tested by

no test coverage detected