Currently, this lib only allows the adapter to be set through config.exs, but through this way it's not possible to set custom opts, so passing the adapter with options when building the client seems to be the easiest way to do this.
My use case is to increase hackney timeout, like this:
Coverage remained the same at 100.0% when pulling 509d73c33d3b7c09a23a1084476d49ee37952e7b on gabrielpra1:add-adapter-opts into 467de59c53130eb9c3703ab8ea2282e0b1884b4c on chulkilee:master.
We have 3 options to set custom configuration for the adapters in Tesla: https://github.com/teamon/tesla#adapter-options
Currently, this lib only allows the adapter to be set through
config.exs
, but through this way it's not possible to set custom opts, so passing the adapter with options when building the client seems to be the easiest way to do this.My use case is to increase
hackney
timeout, like this: