summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpResponseCommand.h')
-rw-r--r--src/HttpResponseCommand.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h
index 6cb410be..6162b2ca 100644
--- a/src/HttpResponseCommand.h
+++ b/src/HttpResponseCommand.h
@@ -36,6 +36,7 @@
#define _D_HTTP_RESPONSE_COMMAND_H_
#include "AbstractCommand.h"
+#include "Decoder.h"
namespace aria2 {
@@ -52,7 +53,12 @@ private:
bool handleOtherEncoding(const SharedHandle<HttpResponse>& httpResponse);
bool skipResponseBody(const SharedHandle<HttpResponse>& httpResponse);
- HttpDownloadCommand* createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse);
+ HttpDownloadCommand*
+ createHttpDownloadCommand(const SharedHandle<HttpResponse>& httpResponse,
+ const SharedHandle<Decoder>& transferEncodingDecoder
+ = SharedHandle<Decoder>(),
+ const SharedHandle<Decoder>& contentEncodingDecoder
+ = SharedHandle<Decoder>());
protected:
bool executeInternal();