| 84 | } |
| 85 | |
| 86 | void HttpHandler::HandlePanelStreamMessage(http::web_request& req, http::web_response& resp) { |
| 87 | auto& body = req.body(); |
| 88 | auto target = req.target(); |
| 89 | if (body.empty()) { |
| 90 | SendErrorJson(resp, kHandlerErrBody); |
| 91 | return; |
| 92 | } |
| 93 | |
| 94 | auto event = std::make_shared<GrPluginPanelStreamMessage>(); |
| 95 | event->body_ = Data::From(body); |
| 96 | this->plugin_->CallbackEvent(event); |
| 97 | |
| 98 | SendOkJson(resp, ""); |
| 99 | } |
| 100 | |
| 101 | void HttpHandler::HandleAllocLocalRtc(std::shared_ptr<asio2::http_session> &session_ptr, http::web_request& req, http::web_response& resp) { |
| 102 | auto& body = req.body(); |