Tesla.Middleware.FollowRedirects (tesla v1.5.1) View Source

Follow HTTP 3xx redirects.

Examples

defmodule MyClient do
  use Tesla

  plug Tesla.Middleware.FollowRedirects, max_redirects: 3 # defaults to 5
end

Options

  • :max_redirects - limit number of redirects (default: 5)