/* */ #include "HttpDownloadCommand.h" #include #include #include #include #include "DlRetryEx.h" #include "HttpRequestCommand.h" #include "Util.h" #include "ChunkedEncoding.h" using namespace std; HttpDownloadCommand::HttpDownloadCommand(int cuid, Request* req, DownloadEngine* e, const Socket* socket): DownloadCommand(cuid, req, e, socket) { ChunkedEncoding* ce = new ChunkedEncoding(); transferEncodings["chunked"] = ce; } HttpDownloadCommand::~HttpDownloadCommand() { for(map::iterator itr = transferEncodings.begin(); itr != transferEncodings.end(); itr++) { delete((*itr).second); } } TransferEncoding* HttpDownloadCommand::getTransferEncoding(string name) { return transferEncodings[name]; }