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

Add support for custom HTTP(S) agents #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

deg0nz
Copy link

@deg0nz deg0nz commented Sep 16, 2021

Hi,

I had the need to use wait-on for HTTP requests via a SOCKS proxy, so I added the functionality to hand over custom Agents to Axios. The agents are optional in Axios configs, so the handover of undefined should be fine.

If you would like something changed, please tell me. I'm not so familiar with some of the JS syntax you use here, so please bare with me if I missed something.

Since a custom HTTPS agent will make the use of properties ['ca', 'cert', 'key', 'passphrase'] obsolete, maybe we should put a hint to the docs...?

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