| 23 | } |
| 24 | |
| 25 | std::string HttpHandler::GetErrorMessage(int code) { |
| 26 | if (code == kHandlerErrVerifySafetyPasswordFailed) { |
| 27 | return "Verify security password failed"; |
| 28 | } |
| 29 | else if (code == kHandlerErrNoSafetyPasswordInRenderer) { |
| 30 | return "No security password in renderer"; |
| 31 | } |
| 32 | else if (code == kHandlerErrNoRtcLocalPlugin) { |
| 33 | return "No RtcLocalPlugin"; |
| 34 | } |
| 35 | else if (code == kHandlerErrCreateRtcLocalServerFailed) { |
| 36 | return "Create Rtc local server failed"; |
| 37 | } |
| 38 | return BaseHandler::GetErrorMessage(code); |
| 39 | } |
| 40 | |
| 41 | void HttpHandler::HandlePing(http::web_request &req, http::web_response &resp) { |
| 42 | auto data = WrapBasicInfo(200, "ok", std::string("Pong")); |
nothing calls this directly
no outgoing calls
no test coverage detected