MCPcopy Create free account
hub / github.com/coolight7/musicxx / MyHttpServerTask_c

Method MyHttpServerTask_c

server-cxx/src/myServer/MyHttpTask.cpp:291–298  ·  view source on GitHub ↗

ServerTask

Source from the content-addressed store, hash-verified

289
290// ServerTask
291MyHttpServerTask_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
300void MyHttpServerTask_c::handle(int state, int error) {
301 if (state == WFT_STATE_TOREPLY) {

Callers

nothing calls this directly

Calls 1

run_callbackMethod · 0.95

Tested by

no test coverage detected