Tesla.Adapter.Hackney (tesla v1.4.0) View Source

Adapter for hackney.

Remember to add {:hackney, "~> 1.13"} to dependencies (and :hackney to applications in mix.exs) Also, you need to recompile tesla after adding :hackney dependency:

mix deps.clean tesla
mix deps.compile tesla

Example usage

# set globally in config/config.exs
config :tesla, :adapter, Tesla.Adapter.Hackney

# set per module
defmodule MyClient do
  use Tesla

  adapter Tesla.Adapter.Hackney
end