View Source Tesla.Adapter.Hackney (tesla v1.11.0)
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
Examples
# 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
Adapter specific options
:max_body
- Max response body size in bytes. Actual response may be bigger because hackney stops after the last chunk that surpasses:max_body
.