diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-07 14:38:26 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-07 14:38:26 +0000 |
| commit | dbc8f5b737607db38399385e3b94f8dec9b3576c (patch) | |
| tree | 150969e8a16f152dad7ddd07f9ad259cf8ffe0fe /src/HttpResponse.h | |
| parent | 4e28efd925214dd60ddc02b8fa3a8c1128bc0fec (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/HttpResponse.h')
| -rw-r--r-- | src/HttpResponse.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/HttpResponse.h b/src/HttpResponse.h index aaef9a97..8d156768 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -37,7 +37,7 @@ #include "common.h" #include "SharedHandle.h" -#include "a2time.h" +#include "TimeA2.h" #include <stdint.h> namespace aria2 { @@ -115,6 +115,8 @@ public: bool hasRetryAfter() const; time_t getRetryAfter() const; + + Time getLastModifiedTime() const; }; typedef SharedHandle<HttpResponse> HttpResponseHandle; |
