#pragma once #include #include #include #include #include namespace DB { class HTTPServer : public TCPServer { public: explicit HTTPServer( HTTPContextPtr context, HTTPRequestHandlerFactoryPtr factory, Poco::ThreadPool & thread_pool, Poco::Net::ServerSocket & socket, Poco::Net::HTTPServerParams::Ptr params, const ProfileEvents::Event & read_event_ = ProfileEvents::end(), const ProfileEvents::Event & write_event_ = ProfileEvents::end()); ~HTTPServer() override; void stopAll(bool abort_current = false); private: HTTPRequestHandlerFactoryPtr factory; }; }