mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #384 from No9/master
Mention Harmon used for response modifications in the readme
This commit is contained in:
commit
3ebc795c33
@ -428,6 +428,10 @@ httpProxy.createServer(
|
||||
).listen(8000);
|
||||
```
|
||||
|
||||
A regular request we receive is to support the modification of html/xml content that is returned in the response from an upstream server.
|
||||
|
||||
[Harmon](https://github.com/No9/harmon/) is a stream based middleware plugin that is designed to solve that problem in the most effective way possible.
|
||||
|
||||
## Proxying WebSockets
|
||||
Websockets are handled automatically when using `httpProxy.createServer()`, however, if you supply a callback inside the createServer call, you will need to handle the 'upgrade' proxy event yourself. Here's how:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user