AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

Using No Proxy #176

Closed subinamathew closed 1 year ago

subinamathew commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.