An HTTPoison adapter for the Ivar HTTP client
Add ivar_httpoison
to your list of dependencies in mix.exs
def deps do
[
{:ivar_httpoison, "~> 0.2.0"}
]
end
And then configure Ivar to use the adapter
config :ivar,
adapter: Ivar.HTTPoison
You can configure any of the HTTPoison options via the http
config key and these will be passed onto HTTPoison
config :ivar,
adapter: Ivar.HTTPoison,
http: [
timeout : 5_000
]