#include "CustomCtrl.h" // add definition of your processing function here void CustomCtrl::hello(const HttpRequestPtr &req, std::function &&callback, const std::string &userName) const { auto resp = HttpResponse::newHttpResponse(); resp->setBody("

" + greetings_ + ", " + userName + "

"); callback(resp); }