drogon/examples/benchmark/BenchmarkCtrl.h

12 lines
371 B
C++

#pragma once
#include <drogon/HttpSimpleController.h>
using namespace drogon;
class BenchmarkCtrl:public drogon::HttpSimpleController<BenchmarkCtrl>
{
public:
virtual void asyncHandleHttpRequest(const HttpRequestPtr& req,const std::function<void (const HttpResponsePtr &)> & callback)override;
PATH_LIST_BEGIN
PATH_ADD("/benchmark",Get);
PATH_LIST_END
};