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

Method unregisterHandler

switch/source/server.cpp:367–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void Server::unregisterHandler(const std::string& path)
368{
369 {
370 std::lock_guard<std::mutex> lock(handlersMutex);
371 handlers.erase(path);
372 uploadHandlers.erase(path);
373 }
374 Logging::info("Unregistered HTTP handler for path {}", path);
375}
376
377void Server::registerUploadHandler(const std::string& path, const std::string& tmpPath, Server::UploadHandler handler)
378{

Callers

nothing calls this directly

Calls 2

infoFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected