Skip to content

Add configurable adapter for tesla#34

Open
luisfmcalado wants to merge 1 commit intoalexgaribay:masterfrom
luisfmcalado:configurable-adapter
Open

Add configurable adapter for tesla#34
luisfmcalado wants to merge 1 commit intoalexgaribay:masterfrom
luisfmcalado:configurable-adapter

Conversation

@luisfmcalado
Copy link
Copy Markdown

In some cases you might need to change the tesla adapter options, for example, you might need to have a proxy configured to use the SendGrid web API.

config :sendgrid,
  adapter: {Tesla.Adapter.Hackney, [proxy: "http://192.168.1.1:8888"]}

Here we add a configurable adapter for Tesla injected through the Tesla.client/2. If the adapter isn't configured the default is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant