summaryrefslogtreecommitdiff
path: root/methods/basehttp.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-18 13:52:58 +0000
committerJulian Andres Klode <jak@debian.org>2024-11-18 13:52:58 +0000
commit39de3df0774dce8f858cbce384ac63d50c632f5f (patch)
tree93b78b07910e9c072ef6f2b65f361de20da4a4d8 /methods/basehttp.h
parentdb57773a96d1108bdad78ff3d1359a88d9689912 (diff)
parentcabcaf3c326408bf71a9a83f51973214fddcefb1 (diff)
Merge branch 'fm/apt-rate-limit' into 'main'
http: use Retry-After HTTP header to optimize retries See merge request apt-team/apt!383
Diffstat (limited to 'methods/basehttp.h')
-rw-r--r--methods/basehttp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/basehttp.h b/methods/basehttp.h
index 080ea527e..c077ea384 100644
--- a/methods/basehttp.h
+++ b/methods/basehttp.h
@@ -57,6 +57,7 @@ struct RequestState
enum {Chunked,Stream,Closes} Encoding = Closes;
enum {Header, Data} State = Header;
std::string Location;
+ time_t RetryAfter = 0;
FileFd File;