#ifndef __HTTPSERVER_HPP_ #define __HTTPSERVER_HPP_ #include #include "UtilBase.hpp" #include "Util/logger.h" #include #include "config.hpp" #include "Expel.hpp" using namespace std; using namespace toolkit; namespace gsd{ class HttpServer: public ModuleBase { private: HttpServer(): ModuleBase(){ } public: using Ptr = std::shared_ptr; /** * @description: CreateNew * @return {*} */ static std::shared_ptr CreateNew(); ~HttpServer(){} /** * @description: Init * @return {*} */ virtual bool Init(); /** * @description: Destroy * @return {*} */ virtual void Destroy(); protected: /** * @brief 服务 */ std::shared_ptr m_server = nullptr; }; } #endif