View Source Tesla.Adapter.Hackney (tesla v1.13.2)
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
def client do
Tesla.client([], Tesla.Adapter.Hackney)
end
endAdapter 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.