Skip to content

Add support for custom HTTP(S) agents#107

Open
deg0nz wants to merge 4 commits intojeffbski:masterfrom
deg0nz:support-custom-http$-agent
Open

Add support for custom HTTP(S) agents#107
deg0nz wants to merge 4 commits intojeffbski:masterfrom
deg0nz:support-custom-http$-agent

Conversation

@deg0nz
Copy link
Copy Markdown

@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