ServerTask
| 289 | |
| 290 | // ServerTask |
| 291 | MyHttpServerTask_c::MyHttpServerTask_c(CommService* service, MyHttpProcess_t& process) noexcept : |
| 292 | WFServerTask<MyHttpRequest_c, MyHttpResponse_c>(service, WFGlobal::get_scheduler(), process), |
| 293 | req_is_alive_(false), |
| 294 | req_has_keep_alive_header_(false) { |
| 295 | WFServerTask<MyHttpRequest_c, MyHttpResponse_c>::set_callback([this](MyHttpTask_c* task) { |
| 296 | this->run_callback(); |
| 297 | }); |
| 298 | } |
| 299 | |
| 300 | void MyHttpServerTask_c::handle(int state, int error) { |
| 301 | if (state == WFT_STATE_TOREPLY) { |
nothing calls this directly
no test coverage detected