summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-06 14:29:36 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-09-06 14:29:36 +0000
commitefbfe4c006cfb6e0bf3ee4ed57d0657c0cd85c19 (patch)
treea72723a125c34220772259f051673ff88598bded /src/HttpResponseCommand.h
parent552c753dbba55005964ad60698d803a44dac6391 (diff)
2010-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Data from remote server in HTTP/FTP download are now written to the disk(or memory) through StreamFilter. Decoding chunked and gziped streams are done cascading StreamFilter. Removed inefficient 1byte read code. * src/ChunkedDecodingStreamFilter.cc * src/ChunkedDecodingStreamFilter.h * src/DownloadCommand.cc * src/DownloadCommand.h * src/GZipDecodingStreamFilter.cc * src/GZipDecodingStreamFilter.h * src/HttpConnection.cc * src/HttpDownloadCommand.cc * src/HttpResponse.cc * src/HttpResponse.h * src/HttpResponseCommand.cc * src/HttpResponseCommand.h * src/HttpSkipResponseCommand.cc * src/HttpSkipResponseCommand.h * src/Makefile.am * src/NullSinkStreamFilter.cc * src/NullSinkStreamFilter.h * src/RequestGroup.cc * src/SinkStreamFilter.cc * src/SinkStreamFilter.h * src/StreamFilter.cc * src/StreamFilter.h * test/ChunkedDecodingStreamFilterTest.cc * test/GZipDecodingStreamFilterTest.cc * test/HttpResponseTest.cc * test/Makefile.am * test/MockSegment.h
Diffstat (limited to 'src/HttpResponseCommand.h')
-rw-r--r--src/HttpResponseCommand.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h
index 79f2618b..85932f68 100644
--- a/src/HttpResponseCommand.h
+++ b/src/HttpResponseCommand.h
@@ -36,7 +36,6 @@
#define _D_HTTP_RESPONSE_COMMAND_H_
#include "AbstractCommand.h"
-#include "Decoder.h"
#include "TimeA2.h"
namespace aria2 {
@@ -45,6 +44,7 @@ class HttpConnection;
class HttpDownloadCommand;
class HttpResponse;
class SocketCore;
+class StreamFilter;
class HttpResponseCommand : public AbstractCommand {
private:
@@ -55,11 +55,9 @@ private:
bool skipResponseBody(const SharedHandle<HttpResponse>& httpResponse);
HttpDownloadCommand*
- createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse,
- const SharedHandle<Decoder>& transferEncodingDecoder
- = SharedHandle<Decoder>(),
- const SharedHandle<Decoder>& contentEncodingDecoder
- = SharedHandle<Decoder>());
+ createHttpDownloadCommand
+ (const SharedHandle<HttpResponse>& httpResponse,
+ const SharedHandle<StreamFilter>& streamFilter);
void updateLastModifiedTime(const Time& lastModified);