tesla v0.10.0 Tesla.Middleware.Retry View Source

Retry few times in case of connection refused error.

Example

defmodule MyClient do
  use Tesla

  plug Tesla.Middleware.Retry, delay: 500, max_retries: 10
end

Options

  • :delay - number of milliseconds to wait before retrying (defaults to 1000)
  • :max_retries - maximum number of retries (defaults to 5)

Link to this section Summary

Link to this section Functions

Callback implementation for Tesla.Middleware.call/3.