Can we add a response failure retry function?
formatsystem opened this issue · 1 comments
formatsystem commented
I want to use an interceptor to resubmit the response after it fails. However, it seems that there is no relevant function or is there any good way to implement it?
ryber commented
Unirest has a retry mechanism available in the config. It is designed for use with APIs that support the retry-after header but it can be customized. See the Unirest::config::retryAfter
methods in particular the one that allows you to set a RetryStrategy