View Source Tesla.Middleware.FollowRedirects (tesla v1.7.0)
Follow HTTP 3xx redirects.
examples
Examples
defmodule MyClient do
use Tesla
plug Tesla.Middleware.FollowRedirects, max_redirects: 3 # defaults to 5
end
options
Options
:max_redirects
- limit number of redirects (default:5
)