Created by: ksky521
in https://github.com/http-party/node-http-proxy/blob/master/lib/http-proxy/index.js#L64-L65 options.target
can use URL
instance:
const url = new URL(req.url);
proxyServer.web(req, res, {
target: url
});
https://github.com/http-party/node-http-proxy/blob/master/lib/http-proxy/passes/web-outgoing.js#L54 don't support URL instance