MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / AddHttpPostRouter

Method AddHttpPostRouter

src/render_panel/network/ws_panel_server.cpp:362–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361
362 void WsPanelServer::AddHttpPostRouter(const std::string& path,
363 std::function<void(const std::string& path, http::web_request &req, http::web_response &rep)>&& cbk) {
364 server_->bind<http::verb::post>(path, [=, this](http::web_request &req, http::web_response &rep) {
365 cbk(path, req, rep);
366 }, aop_log{});
367 }
368
369 void WsPanelServer::PostPanelMessage(const std::string& msg, bool only_inner) {
370 panel_sessions_.VisitAll([=, this](uint64_t fd, std::shared_ptr<WSSession>& sess) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected