| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected