summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tgbot/net/HttpClient.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tgbot/net/HttpClient.h b/include/tgbot/net/HttpClient.h
index 90b93dd..9b93328 100644
--- a/include/tgbot/net/HttpClient.h
+++ b/include/tgbot/net/HttpClient.h
@@ -29,10 +29,16 @@ public:
std::int32_t _timeout = 25;
+ /**
+ * @brief Get the maximum number of makeRequest() retries before giving up and throwing an exception.
+ */
virtual int getRequestMaxRetries() const {
return requestMaxRetries;
}
+ /**
+ * @brief Get the makeRequest() backoff duration between retries, in seconds.
+ */
virtual int getRequestBackoff() const {
return requestBackoff;
}