| 169 | } |
| 170 | |
| 171 | int Server::OnNewHttpRequest(struct mg_connection* conn) { |
| 172 | mg_context* context = mg_get_context(conn); |
| 173 | Server* current_server = reinterpret_cast<Server*>(mg_get_user_data(context)); |
| 174 | const mg_request_info* request_info = mg_get_request_info(conn); |
| 175 | int handler_result_code = current_server->ProcessRequest(conn, request_info); |
| 176 | return handler_result_code; |
| 177 | } |
| 178 | |
| 179 | bool Server::Start() { |
| 180 | LOG(TRACE) << "Entering Server::Start"; |
nothing calls this directly
no test coverage detected