prestige v0.3.3 Prestige.Middleware.Retry View Source

Tesla plug that will retry the http request when an error or 503 status code is returned. Will retry for a configurable amount of time

Options:

* `:max_retries` - Override amount of retry attempts (default: 5)
* `:delay` - Delay between requests in milliseconds (default: 1000ms)

Examples

`plug(Prestige.Middleware.Retry, delay: 100, max_retries: 5)`

Link to this section Summary

Link to this section Functions

Callback implementation for Tesla.Middleware.call/3.