Add support for no_proxy in RequestService#206622
Add support for no_proxy in RequestService#206622jeremie-stripe wants to merge 2 commits intomicrosoft:mainfrom
no_proxy in RequestService#206622Conversation
77b2ba7 to
2f000a2
Compare
2f000a2 to
16108f1
Compare
|
Thanks for the PR! This makes a lot of sense. I wonder if we should replace this with the |
|
@chrmarti up to you, it looks like this is used only for extensions today? Any historical reason why it would not have been used for the main request service as well? Looking at the other implementation it seems roughly similar. The main distinctions I can see are that vscode/proxy-agent supports ports What is your recommendation then? |
|
@chrmarti ping on this PR, my last question still stands on how you want to proceed with this. |
|
Using |
|
Also note that a noProxy setting was added: #211958 |
|
Moved the bulk of the logic in microsoft/vscode-proxy-agent#60 as discussed (cc @chrmarti) |
In the same way that the environment variable
http_proxyandhttps_proxyare supported, also add support for the final piece of the puzzle which isno_proxy(with the same approach of allowing both a configuration option and the environment to be read).Since there is no one true way to process the content of the
no_proxyvalue, I tried to follow the most compatible approach as outlined in https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/. See also the man pages of tools likecurlorwgetfor examples.The PR supports the following options:
*Tests were added.