Tesla.Middleware.Timeout (tesla v1.5.0) 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 to1000
)