summaryrefslogtreecommitdiff
path: root/src/HttpSkipResponseCommand.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/HttpSkipResponseCommand.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/HttpSkipResponseCommand.h')
-rw-r--r--src/HttpSkipResponseCommand.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/HttpSkipResponseCommand.h b/src/HttpSkipResponseCommand.h
index 2a865cf7..7fb1769d 100644
--- a/src/HttpSkipResponseCommand.h
+++ b/src/HttpSkipResponseCommand.h
@@ -41,7 +41,7 @@ namespace aria2 {
class HttpConnection;
class HttpResponse;
-class Decoder;
+class StreamFilter;
class HttpSkipResponseCommand : public AbstractCommand {
private:
@@ -49,7 +49,9 @@ private:
SharedHandle<HttpResponse> httpResponse_;
- SharedHandle<Decoder> transferEncodingDecoder_;
+ SharedHandle<StreamFilter> streamFilter_;
+
+ bool sinkFilterOnly_;
uint64_t totalLength_;
@@ -72,7 +74,7 @@ public:
virtual ~HttpSkipResponseCommand();
- void setTransferEncodingDecoder(const SharedHandle<Decoder>& decoder);
+ void installStreamFilter(const SharedHandle<StreamFilter>& streamFilter);
void disableSocketCheck();
};