From 10b1ddd2c02050eacb138eead8e89bd8dda3a6cc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 10 May 2008 04:57:33 +0000 Subject: 2008-05-10 Tatsuhiro Tsujikawa Renamed HttpNullDownloadCommand as HttpSkipResponseCommand * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/HttpSkipResponseCommand.h --- src/HttpSkipResponseCommand.h | 77 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/HttpSkipResponseCommand.h (limited to 'src/HttpSkipResponseCommand.h') diff --git a/src/HttpSkipResponseCommand.h b/src/HttpSkipResponseCommand.h new file mode 100644 index 00000000..d6c32e5f --- /dev/null +++ b/src/HttpSkipResponseCommand.h @@ -0,0 +1,77 @@ +/* */ +#ifndef _D_HTTP_SKIP_RESPONSE_COMMAND_H_ +#define _D_HTTP_SKIP_RESPONSE_COMMAND_H_ + +#include "AbstractCommand.h" + +namespace aria2 { + +class HttpConnection; +class HttpResponse; +class TransferEncoding; + +class HttpSkipResponseCommand : public AbstractCommand { +private: + SharedHandle _httpConnection; + + SharedHandle _httpResponse; + + SharedHandle _transferDecoder; + + uint64_t _totalLength; + + uint64_t _receivedBytes; + + bool processResponse(); +protected: + virtual bool executeInternal(); +public: + HttpSkipResponseCommand(int cuid, + const SharedHandle& req, + RequestGroup* requestGroup, + const SharedHandle& httpConnection, + const SharedHandle& httpResponse, + DownloadEngine* e, + const SharedHandle& s); + + virtual ~HttpSkipResponseCommand(); + + void setTransferDecoder(const SharedHandle& transferDecoder); +}; + +} // namespace aria2 + +#endif // _D_HTTP_SKIP_RESPONSE_COMMAND_H_ -- cgit