BexioApiClient.Req.RewriteDelay (bexio_api_client v0.6.4)
This module just handles the normal Bexio API rate limit headers as well as the (observed) regular exceptions to retry. With status code 429 we try to read the header "ratelimit-reset" and send back the {:delay, delay} tuple. In case of 408, 500, 502, 503, 504 we fall back to the retry mechanism.
Link to this section Summary
Link to this section Functions
Link to this function
retry(request, response_or_exception)
@spec retry(Req.Request.t(), any()) :: boolean() | {:delay, integer()}