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

Method registerHandler

switch/source/server.cpp:358–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void Server::registerHandler(const std::string& path, Server::HttpHandler handler)
359{
360 {
361 std::lock_guard<std::mutex> lock(handlersMutex);
362 handlers[path] = handler;
363 }
364 Logging::info("Registered HTTP handler for path {}", path);
365}
366
367void Server::unregisterHandler(const std::string& path)
368{

Callers

nothing calls this directly

Calls 1

infoFunction · 0.85

Tested by

no test coverage detected