Hi guys,
I'm new to NW.js, please bear with me.
I'd like to know if NW is capable of handling these 02 uses case:
1. GET 1. let's say I'd like to load a web page, be it:
https://www.wikipedia.org/2. a NW handler will intercept that URL before it's even sent on the wire:
2.1. the URL is rewritten to my local proxy:
GET
http://localhost:8000/https://www.wikipedia.org/ 1.1\r\n
X-MY-PROXY-HEADER: some_value_here\r\n
[...] I don't touch the original HTTP request headers and keep them as they were
...
2. POST
Same logic for post requests. I intercept a POST query:
POST
http://localhost:8000/https://reqbin.com/post-online/ 1.1\r\n
X-MY-PROXY-HEADER: some_other_here\r\n
[...] I don't touch the original HTTP request headers and keep them as they were
...
<POST BODY>
Is this doable in NW.js? If yes, please point me to the corresponding doc or any code snippet.
Help appreciated
Thanks