mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Clarify usable parameters for proxyRes event.
This commit is contained in:
parent
05f0b891a6
commit
49a0de1e7c
@ -216,8 +216,8 @@ proxy.on('error', function (err, req, res) {
|
||||
//
|
||||
// Listen for the `proxyRes` event on `proxy`.
|
||||
//
|
||||
proxy.on('proxyRes', function (res) {
|
||||
console.log('RAW Response from the target', JSON.stringify(res.headers, true, 2));
|
||||
proxy.on('proxyRes', function (proxyRes, req, res) {
|
||||
console.log('RAW Response from the target', JSON.stringify(proxyRes.headers, true, 2));
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user