Overriding the http/s methods


#1

I would like to override the http/s methods in such a way that I do the request to the server/whatever resource I am specifying.

The reason I would like to do this is that the app I am creating will be located inside a proxy(using a PAC file) and the only way I’ve been able to do requests is using the ‘request’ module mixed with ‘pac-proxy-agent’.

Currently whenever a resource is loaded from a non-local URL(eg. https://fonts.googleapis.com/css?family=Roboto) it causes a ‘login’ event on the app, but as far as I can fathom there is no way of authenticating using PAC through this method.

As above, I would like to stop electron from using the default get/post handler and instead implement my own.

Thanks for your help,

Regards,
G