mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #705 from Jimbly/patch-1
Fixed misleading documentation
This commit is contained in:
commit
2aa3b84d7b
@ -315,13 +315,13 @@ proxyServer.listen(8015);
|
|||||||
* **forward**: url string to be parsed with the url module
|
* **forward**: url string to be parsed with the url module
|
||||||
* **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)
|
* **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)
|
||||||
* **secure**: true/false, if you want to verify the SSL Certs
|
* **secure**: true/false, if you want to verify the SSL Certs
|
||||||
|
* **xfwd**: true/false, adds x-forward headers
|
||||||
|
* **toProxy**: passes the absolute URL as the `path` (useful for proxying to proxies)
|
||||||
|
|
||||||
If you are using the `proxyServer.listen` method, the following options are also applicable:
|
If you are using the `proxyServer.listen` method, the following options are also applicable:
|
||||||
|
|
||||||
* **ssl**: object to be passed to https.createServer()
|
* **ssl**: object to be passed to https.createServer()
|
||||||
* **ws**: true/false, if you want to proxy websockets
|
* **ws**: true/false, if you want to proxy websockets
|
||||||
* **xfwd**: true/false, adds x-forward headers
|
|
||||||
* **toProxy**: passes the absolute URL as the `path` (useful for proxying to proxies)
|
|
||||||
|
|
||||||
### Shutdown
|
### Shutdown
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user