(default-retry-strategy)
The default retry strategy: an exponential-backoff with a max-duration of 10 seconds and a maximum of 10 retries.
The default retry strategy: an exponential-backoff with a max-duration of 10 seconds and a maximum of 10 retries.
(http-status-5xx? status-code)
Is the status code 5xx (500-599)
Is the status code 5xx (500-599)
(http-status-retry? status-code)
Is the status code either a 5xx or a too many request
(429).
Is the status code either a 5xx or a `too many request` (429).
(retry? request response)
Default retry?
for wrap-retry
middleware. Is the status code
of the response either a 5xx or a too many request
(429).
Default `retry?` for `wrap-retry` middleware. Is the status code of the response either a 5xx or a `too many request` (429).
(wrap-retry client)
(wrap-retry client retry-strategy)
(wrap-retry client retry-strategy retry?)
Middleware that retries the request, if (retry? request response)
returns true. The retry-strategy function should return a sequence
of millisecond amounts, for example: [200 1000]
means wait 200 ms
after the first and 1 second after the second request.
Read more about retryable request in the context of Google Cloud Platform here:
https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy
Middleware that retries the request, if (retry? request response) returns true. The retry-strategy function should return a sequence of millisecond amounts, for example: `[200 1000]` means wait 200 ms after the first and 1 second after the second request. Read more about retryable request in the context of Google Cloud Platform here: https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close