mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[docs] add UPGRADING.md
This commit is contained in:
parent
16828a9915
commit
db12f6c24e
@ -18,6 +18,8 @@ proxies and load balancers.
|
|||||||
<img src="https://coveralls.io/repos/nodejitsu/node-http-proxy/badge.png?branch=caronte"/></a>
|
<img src="https://coveralls.io/repos/nodejitsu/node-http-proxy/badge.png?branch=caronte"/></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
## Looking to Upgrade from 0.8.x ? Click [here](UPGRADING.md)
|
||||||
|
|
||||||
### Core Concept
|
### Core Concept
|
||||||
|
|
||||||
A new proxy is created by calling `createProxyServer` and passing
|
A new proxy is created by calling `createProxyServer` and passing
|
||||||
|
|||||||
26
UPGRADING.md
Normal file
26
UPGRADING.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
`caronte` is a from-scratch implementation of `http-proxy` and, as such
|
||||||
|
brings some breaking changes to APIs.
|
||||||
|
|
||||||
|
## Server creation
|
||||||
|
|
||||||
|
Available through `.createServer()` or `.createProxyServer()`.
|
||||||
|
Check the README.md for a more detailed explanation of the parameters.
|
||||||
|
|
||||||
|
## Proxying
|
||||||
|
|
||||||
|
Web proying is done by calling the `.web()` method on a Proxy instance. Websockets
|
||||||
|
are proxied by the `.ws()` method.
|
||||||
|
|
||||||
|
## Error Handling
|
||||||
|
|
||||||
|
It is possible to listen globally on the `error` event on the server. In alternative, a
|
||||||
|
callback passed to `.web()` or `.ws()` as last parameter is also accepted.
|
||||||
|
|
||||||
|
## Dropped
|
||||||
|
|
||||||
|
Since the API was rewritten to be extremely flexible we decided to drop some features
|
||||||
|
which were in the core and delegate them to eventual "user-land" modules.
|
||||||
|
|
||||||
|
- Middleware API
|
||||||
|
- ProxyTable API
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user