Skip to content

Commit ef84fa4

Browse files
committed
Update docs
1 parent 84ce2b3 commit ef84fa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/HTTP.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ Retry arguments:
135135
- `retry = true`, retry idempotent requests in case of error.
136136
- `retries = 4`, number of times to retry.
137137
- `retry_non_idempotent = false`, retry non-idempotent requests too. e.g. POST.
138+
- `retry_delay = ExponentialBackOff(n = retries)`, provide a custom `ExponentialBackOff` object to control the delay between retries.
139+
- `retry_check = (s, ex, req, resp) -> Bool`, provide a custom function to control whether a retry should be attempted.
140+
The function should accept 4 arguments: the delay state, exception, request, and response, and return `true` if a retry should be attempted.
138141
139142
Redirect arguments:
140143
- `redirect = true`, follow 3xx redirect responses; i.e. additional requests will be made to the redirected location

0 commit comments

Comments
 (0)