Tesla.Adapter.opts

You're seeing just the function opts, go back to Tesla.Adapter module for more information.
Link to this function

opts(defaults \\ [], env, opts)

View Source

Specs

Helper function that merges all adapter options.

Arguments

  • defaults (optional) - useful to override lower level http client default configuration
  • env - Tesla.Env struct
  • opts - options provided to Tesla.Builder.adapter/2 macro

Precedence rules

  • config from opts overrides config from defaults when same key is encountered
  • config from env overrides config from both defaults and opts when same key is encountered