/* */ #include "HttpServerResponseCommand.h" #include "SocketCore.h" #include "DownloadEngine.h" #include "HttpServer.h" #include "Logger.h" #include "LogFactory.h" #include "HttpServerCommand.h" #include "RequestGroupMan.h" #include "fmt.h" namespace aria2 { HttpServerResponseCommand::HttpServerResponseCommand( cuid_t cuid, const std::shared_ptr& httpServer, DownloadEngine* e, const std::shared_ptr& socket) : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket) { } HttpServerResponseCommand::~HttpServerResponseCommand() = default; void HttpServerResponseCommand::afterSend( const std::shared_ptr& httpServer, DownloadEngine* e) { if (httpServer->supportsPersistentConnection()) { A2_LOG_INFO(fmt("CUID#%" PRId64 " - Persist connection.", getCuid())); e->addCommand(make_unique(getCuid(), httpServer, e, httpServer->getSocket())); } } } // namespace aria2