MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / register_handler

Method register_handler

src/server/server.cpp:562–565  ·  view source on GitHub ↗

@brief register handler @param method the method @param path the path @param handler the handler

Source from the content-addressed store, hash-verified

560///@param path the path
561///@param handler the handler
562void WebServer::register_handler(const std::string& method, const std::string& path, RequestHandler handler) {
563 std::string key = method + " " + path;
564 routes[key] = handler;
565}
566
567///@brief do accept
568void WebServer::do_accept() {

Callers 1

create_lm_serverFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected