[Feature] Automatic retries #41
Closed
luisaveiro
started this conversation in
Ideas
Replies: 1 comment
-
I have created a PR #87 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Provide a retry mechanism for the HTTP Client to retry the request automatically if the request attempt fails.
Possible implementation
We can have a
retry
method that accepts the maximum number of times the request should be attempted and the number of milliseconds that the HTTP Client should wait between attempts.We should have an optional third argument for the
retry
method. The third argument should be a callable that determines if the retries should be attempted.Method signature
Code examples
Code example - no callback
Code example - with callback
Beta Was this translation helpful? Give feedback.
All reactions