Tesla.Middleware.FollowRedirects (tesla v1.4.0) View Source
Follow 3xx redirects
Example
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
)