diff options
author | Dmitry Mikushin <dmitry@kernelgen.org> | 2023-02-12 22:42:03 +0100 |
---|---|---|
committer | Dmitry Mikushin <dmitry@kernelgen.org> | 2023-02-12 22:42:03 +0100 |
commit | 69e2faa1828eb9c73b592faa69a64ea6c98ec6cf (patch) | |
tree | dc85ba2c3dc90ea646624f20952335077079b2e3 /include/tgbot/net | |
parent | 97b0eb447e36308cd6783add28de88e429627bfe (diff) |
Adding briefs for the new functions
Diffstat (limited to 'include/tgbot/net')
-rw-r--r-- | include/tgbot/net/HttpClient.h | 6 |
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; } |