Files
wind_power_cal/third_party/drogon_repo/examples/benchmark/BenchmarkCtrl.cc
T
2026-07-14 15:43:18 +08:00

13 lines
347 B
C++

#include "BenchmarkCtrl.h"
void BenchmarkCtrl::asyncHandleHttpRequest(
const HttpRequestPtr &,
std::function<void(const HttpResponsePtr &)> &&callback)
{
// write your application logic here
auto resp = HttpResponse::newHttpResponse();
resp->setBody("<p>Hello, world!</p>");
resp->setExpiredTime(0);
callback(resp);
}