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

Timeout HTTP request after X milliseconds.

Examples

defmodule MyClient do
  use Tesla

  plug Tesla.Middleware.Timeout, timeout: 2_000
end

Options

  • :timeout - number of milliseconds a request is allowed to take (defaults to 1000)