You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proxyServer.on('upgrade', function (req, socket, head) {
@@ -263,8 +263,8 @@ proxyServer.listen(8015);
263
263
264
264
### Contributing and Issues
265
265
266
-
* Search on Google/Github
267
-
* If you can't find anything, open an issue
266
+
* Search on Google/Github
267
+
* If you can't find anything, open an issue
268
268
* If you feel comfortable about fixing the issue, fork the repo
269
269
* Commit to your local branch (which must be different from `master`)
270
270
* Submit your Pull Request (be sure to include tests and update documentation)
@@ -273,7 +273,7 @@ proxyServer.listen(8015);
273
273
274
274
`httpProxy.createProxyServer` supports the following options:
275
275
276
-
***target**: url string to be parsed with the url module
276
+
***target**: url string to be parsed with the url module
277
277
***forward**: url string to be parsed with the url module
278
278
***agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)
279
279
***secure**: true/false, if you want to verify the SSL Certs
@@ -283,6 +283,7 @@ If you are using the `proxyServer.listen` method, the following options are also
283
283
***ssl**: object to be passed to https.createServer()
284
284
***ws**: true/false, if you want to proxy websockets
285
285
***xfwd**: true/false, adds x-forward headers
286
+
***toProxy**: passes the absolute URL as the `path` (useful for proxying to proxies)
0 commit comments