#include "BenchmarkCtrl.h" void BenchmarkCtrl::asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function & callback) { //write your application logic here auto resp = HttpResponse::newHttpResponse(); resp->setBody("

Hello, world!

"); resp->setExpiredTime(0); callback(resp); }