Retry on errors with specified HTTP methods
Supersedes PR: https://github.com/Mastercard/terraform-provider-restapi/pull/36 Issue: https://github.com/Mastercard/terraform-provider-restapi/issues/34
Allow the user to specify a list of HTTP methods to retry requests on if a status code in the range [500, 600] is received.
Thanks, @nvelat! I know this was created in reference to #34 which was just fixed (creating the merge conflict), but I see the community desire for retry logic aside from that issue. Can you share a few scenarios in this PR that retry logic would be helpful?
A quick thought is that if we are going to go as far as enabling retry logic, we should also let the user configure a cooldown timer and decide which status codes should be retried as well. Just hoping to get the reasonably expected scenarios covered...
This looks excellent.