mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-30 02:37:57 +08:00
move declaration of HttpSimpleControllerBase to HttpSimpleController.h
This commit is contained in:
parent
e7e61d2b18
commit
e887d4f090
@ -22,12 +22,7 @@
|
||||
namespace drogon
|
||||
{
|
||||
|
||||
class HttpSimpleControllerBase:public virtual DrObjectBase
|
||||
{
|
||||
public:
|
||||
virtual void asyncHandleHttpRequest(const HttpRequest& req,std::function<void (HttpResponse &)>callback)=0;
|
||||
virtual ~HttpSimpleControllerBase(){}
|
||||
};
|
||||
|
||||
class HttpAppFramework:public trantor::NonCopyable
|
||||
{
|
||||
public:
|
||||
|
@ -25,6 +25,14 @@ return vet;\
|
||||
}
|
||||
namespace drogon
|
||||
{
|
||||
class HttpSimpleControllerBase:public virtual DrObjectBase
|
||||
{
|
||||
public:
|
||||
virtual void asyncHandleHttpRequest(const HttpRequest& req,std::function<void (HttpResponse &)>callback)=0;
|
||||
virtual ~HttpSimpleControllerBase(){}
|
||||
};
|
||||
|
||||
|
||||
template <typename T>
|
||||
class HttpSimpleController:public DrObject<T>,public HttpSimpleControllerBase
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user