This commit is contained in:
an-tao 2018-05-10 17:11:22 +08:00
parent 66ab5afd34
commit 866eb12b1a
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#include <drogon/DrObject.h>
#include <iostream>
#include <drogon/HttpAppFramework.h>
#include <trantor/utils/Logger.h>
@ -8,8 +9,15 @@ static const char banner[]=" _ \n"
" \\__,_|_| \\___/ \\__, |\\___/|_| |_|\n"
" |___/ \n";
class HHH:public drogon::DrObject<HHH>
{
public:
HHH(){std::cout<<"class HHH constr,name="<<className()<<std::endl;}
};
int main()
{
drogon::DrObjectBase *p=drogon::DrClassMap::newObject("HHH");
std::cout<<banner<<std::endl;
drogon::HttpAppFramework framework("0.0.0.0",12345);
trantor::Logger::setLogLevel(trantor::Logger::TRACE);

View File

@ -10,6 +10,9 @@
namespace drogon
{
/*
* abstract class for webapp developer to get Http client request;
* */
class HttpRequest
{
public: