Tesla.Adapter.opts
You're seeing just the function
opts
, go back to Tesla.Adapter module for more information.
Specs
opts(Keyword.t(), Tesla.Env.t(), Keyword.t()) :: Keyword.t()
Helper function that merges all adapter options.
Arguments
defaults
(optional) - useful to override lower level http client default configurationenv
-Tesla.Env
structopts
- options provided toTesla.Builder.adapter/2
macro
Precedence rules
- config from
opts
overrides config fromdefaults
when same key is encountered - config from
env
overrides config from bothdefaults
andopts
when same key is encountered