hgouveia / node-downloader-helper

A simple http file downloader for node.js
MIT License
253 stars 54 forks source link

Support net.request in Electron #117

Open gpetrov opened 4 months ago

gpetrov commented 4 months ago

Can we have support for the native net.request in Electron? See https://www.electronjs.org/docs/latest/api/net

It is similar to the http and https modules of Node.js but uses Chromium's native networking library instead of the Node.js implementation, offering better support for web proxies. It also supports checking network status.

Should be pretty easy to implement by just using the net has protocol handler in [initProtocol ](https://github.com/hgouveia/node-downloader-helper/blob/master/src/index.js#L1078) when in Electron

hgouveia commented 4 months ago

@gpetrov yeap it seems a drop in replacement so can be a good option, i will look into this thanks for the suggestion