summaryrefslogtreecommitdiff
path: root/src/HttpResponseCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-07 14:38:26 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-07 14:38:26 +0000
commitdbc8f5b737607db38399385e3b94f8dec9b3576c (patch)
tree150969e8a16f152dad7ddd07f9ad259cf8ffe0fe /src/HttpResponseCommand.h
parent4e28efd925214dd60ddc02b8fa3a8c1128bc0fec (diff)
2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented the ability to get timestamp from remote HTTP server and apply it to local file. To enable this feature, --remote-time option is added. No usage text has been written yet. If several servers returns difference timestamp, then aria2 uses latest one. * src/CopyDiskAdaptor.cc * src/CopyDiskAdaptor.h * src/DirectDiskAdaptor.cc * src/DirectDiskAdaptor.h * src/DiskAdaptor.h * src/File.cc * src/File.h * src/HttpHeader.cc * src/HttpHeader.h * src/HttpResponse.cc * src/HttpResponse.h * src/HttpResponseCommand.cc * src/HttpResponseCommand.h * src/MultiDiskAdaptor.cc * src/MultiDiskAdaptor.h * src/OptionHandlerFactory.cc * src/RequestGroup.cc * src/RequestGroup.h * src/RequestGroupMan.cc * src/option_processing.cc * src/prefs.cc * src/prefs.h * test/CopyDiskAdaptorTest.cc * test/FileTest.cc * test/Makefile.am * test/Makefile.in * test/MultiDiskAdaptorTest.cc * test/TestUtil.cc
Diffstat (limited to 'src/HttpResponseCommand.h')
-rw-r--r--src/HttpResponseCommand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h
index 6162b2ca..0a622c16 100644
--- a/src/HttpResponseCommand.h
+++ b/src/HttpResponseCommand.h
@@ -37,6 +37,7 @@
#include "AbstractCommand.h"
#include "Decoder.h"
+#include "TimeA2.h"
namespace aria2 {
@@ -59,6 +60,8 @@ private:
= SharedHandle<Decoder>(),
const SharedHandle<Decoder>& contentEncodingDecoder
= SharedHandle<Decoder>());
+
+ void updateLastModifiedTime(const Time& lastModified);
protected:
bool executeInternal();