I followed the simple no dependency core nodejs code solution to make a proxy server. https://stackoverflow.com/a/49864522/1029110
As answered in this post HTTPS Proxy Server in node.js
But currently not getting query params or whole URL path.
Only hostname and port are present.
How to get complete original URL?
I want to avoid usage of npm package like express, but can use lightweight ~10Kb library if required.