audio_trans/lib/tests/integration_test/server/CustomCtrl.cc

12 lines
403 B
C++
Raw Permalink Normal View History

2025-04-07 11:31:21 +08:00
#include "CustomCtrl.h"
// add definition of your processing function here
void CustomCtrl::hello(const HttpRequestPtr &req,
std::function<void(const HttpResponsePtr &)> &&callback,
const std::string &userName) const
{
auto resp = HttpResponse::newHttpResponse();
resp->setBody("<P>" + greetings_ + ", " + userName + "</P>");
callback(resp);
}