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

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)