Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support profile for httpc adapter #655

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

tanguilp
Copy link
Contributor

@tanguilp tanguilp commented Feb 9, 2024

httpc:request/5 function can be used to indicate a profile to use. It's particularly useful to set up proxies (socks & http) and that's actually the only way.

This PR refactors the httpc adapter to use, when present, the profile in the options passed as a parameter when setting up the adapter in the client.

Setting up the profile is to be done separately (see the test file).

The test is a bit weak because I could not find a way to actually make sure the profile is used. However, the whole thing crashes when the profile is not set up, so I guess it's quite ok.

@tanguilp tanguilp changed the title Support profile for httpc adapter Support profile for httpc adapter Feb 9, 2024
@yordis yordis merged commit 0ca1e59 into elixir-tesla:master Apr 25, 2024
9 checks passed
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.

2 participants