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

Using No Proxy #176

Closed
subinamathew opened this issue Feb 9, 2023 · 2 comments
Closed

Using No Proxy #176

subinamathew opened this issue Feb 9, 2023 · 2 comments

Comments

@subinamathew
Copy link

subinamathew commented Feb 9, 2023

How do we set up no proxy directly in http yac?
I use proxy settings for vscode but in it too, we cannot set no proxy ... can I set no proxy directly for httpyac?
something like "thunder-client.excludeProxyHostList": "localhost"

@AnWeber
Copy link
Owner

AnWeber commented Feb 9, 2023

Unfortunately, I am just discovering that this is very difficult to do. About an own hook in a .httpyac.js file it would work. But I better add an explicit excludeList or metaData.

.httpyac.js

module.exports = {
configureHooks: (api) => {
  api.hooks.onRequest.addHook('delete_proxy', function (_request,context) {
   delete context.config.proxy;
  });
}
}

AnWeber added a commit to AnWeber/httpyac that referenced this issue Feb 9, 2023
@AnWeber
Copy link
Owner

AnWeber commented Feb 9, 2023

With next release a setting proxyExcludeList is added to ignore proxy setting. Alternativly you could ignore proxy setting with metadata # @no-proxy.

ignore failed build in vscode-httpyac. I should merge httpyac and vscode-httpyac too a monorepo to get rid of these type issues before release of the lib.

@AnWeber AnWeber closed this as completed Feb 9, 2023
AnWeber added a commit to httpyac/httpyac.github.io that referenced this issue Feb 12, 2023
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

No branches or pull requests

2 participants