tesla v0.10.0 Tesla.Middleware.FollowRedirects 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)

Link to this section Summary

Link to this section Functions

Link to this function call(env, next, opts \\ []) View Source

Callback implementation for Tesla.Middleware.call/3.