diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-10 04:50:49 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-05-10 04:50:49 +0000 |
| commit | 03db925988ed5defc2e925d1834059b3aed46ee9 (patch) | |
| tree | 4539275b436b281c4c8ebe1b58e2ed960b0119dd /src/HttpResponse.h | |
| parent | d13b198ddda4cf7bf929766c9e479c497055bfff (diff) | |
2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Pool connection when a server returns 4xx, 5xx responses.
* src/HttpNullDownloadCommand.cc
* src/HttpNullDownloadCommand.h
* src/HttpResponse.cc
* src/HttpResponse.h
* src/HttpResponseCommand.cc
* src/HttpResponseCommand.h
* test/HttpResponseTest.cc
Diffstat (limited to 'src/HttpResponse.h')
| -rw-r--r-- | src/HttpResponse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/HttpResponse.h b/src/HttpResponse.h index 04ea1153..3aeac22a 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -37,6 +37,7 @@ #include "common.h" #include "SharedHandle.h" +#include "a2time.h" #include <stdint.h> namespace aria2 { @@ -104,6 +105,10 @@ public: { this->cuid = cuid; } + + bool hasRetryAfter() const; + + time_t getRetryAfter() const; }; typedef SharedHandle<HttpResponse> HttpResponseHandle; |
