node-http-proxy
node-http-proxy copied to clipboard
A full-featured http proxy for node.js
There are situations where the socket can already be closed. Writing to it will result in a "This socket has been ended by the other party" error which results in...
Fixes #1432 `net_socket.destroyed` appears to exist as of at least Node 6.0.0 :+1:
changing condition, do setHeader only when header is not null undefined NaN empty string ("") 0 false It preserve from exception: [HPM] GET /events?uuids=18cd56cb-45cb-43e6-a397-c4531cc57866 -> http://localhost:8099 _http_outgoing.js:545 throw new ERR_INVALID_HTTP_TOKEN('Header...
This is my example code! ```js const http = require('http'); const httpProxy = require('http-proxy'); const proxy = httpProxy.createProxyServer(); const proxyServer = http.createServer((req, res) => { proxy.web(req, res, { target: 'http://10.5.18.203:9999/',...
Allows forwarding to multiple endpoints by setting the `forward` option to an array of path strings. Also responds with 202 Accepted when forwarding without a target (in a separate commit...
``` const x = require('http-proxy'); const srv = x.createServer({ target: 'http://echo.websocket.org', ws: true, changeOrigin: true }).listen(5555); srv.on('error', () => { console.log('err'); }) ``` After connecting to a path that doesn't...
In [this commit](https://github.com/http-party/node-http-proxy/commit/89a22bc00396f069eeb054ce30891a204077d16d) 7 years ago, 'connection: close' is added to header due to `as node core doesn't handle this COMPLETELY properly yet`. I wonder is this still needed today?
Please upgrade dependencies version the library is using. Because of outdated dependencies it seems `node-http-proxy` consumes vulnerable versions of `debug`. This is for depracated versions range >=3.2.0 =4 =3.2.0 =4...