#include "TestViewCtl.h" void TestViewCtl::asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function&callback) { //write your application logic here drogon::HttpViewData data; data.insert("title",std::string("TestView")); auto res=drogon::HttpResponse::newHttpViewResponse("TestView",data); callback(res); }