audio_trans/lib/tests/integration_test/server/BeginAdviceTest.h

31 lines
732 B
C
Raw Permalink Normal View History

2025-04-07 11:31:21 +08:00
#pragma once
#include <drogon/HttpSimpleController.h>
#include <string>
using namespace drogon;
class BeginAdviceTest : public drogon::HttpSimpleController<BeginAdviceTest>
{
public:
virtual void asyncHandleHttpRequest(
const HttpRequestPtr &req,
std::function<void(const HttpResponsePtr &)> &&callback) override;
PATH_LIST_BEGIN
// list path definations here;
// PATH_ADD("/path","filter1","filter2",...);
PATH_ADD("/test_begin_advice", Get);
PATH_LIST_END
BeginAdviceTest()
{
LOG_DEBUG << "BeginAdviceTest constructor";
}
static void setContent(const std::string &content)
{
content_ = content;
}
private:
static std::string content_;
};