diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-18 13:52:58 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-18 13:52:58 +0000 |
| commit | 39de3df0774dce8f858cbce384ac63d50c632f5f (patch) | |
| tree | 93b78b07910e9c072ef6f2b65f361de20da4a4d8 /apt-pkg/acquire-method.h | |
| parent | db57773a96d1108bdad78ff3d1359a88d9689912 (diff) | |
| parent | cabcaf3c326408bf71a9a83f51973214fddcefb1 (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 'apt-pkg/acquire-method.h')
| -rw-r--r-- | apt-pkg/acquire-method.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/acquire-method.h b/apt-pkg/acquire-method.h index edee93996..387d0984d 100644 --- a/apt-pkg/acquire-method.h +++ b/apt-pkg/acquire-method.h @@ -92,6 +92,7 @@ class APT_PUBLIC pkgAcqMethod // Outgoing messages void Fail(bool Transient = false); + void FailWithContext(std::string Why, bool Transient, std::unordered_map<std::string, std::string> &fields); inline void Fail(const char *Why, bool Transient = false) {Fail(std::string(Why),Transient);}; virtual void Fail(std::string Why, bool Transient = false); virtual void URIStart(FetchResult &Res); |
