We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ac0e4 commit 11b94b1Copy full SHA for 11b94b1
demos/load-balancer-multiple-proxies.js
@@ -3,6 +3,7 @@
3
const gateway = require('../index')
4
const { P2cBalancer } = require('load-balancers')
5
const lambdaProxy = require('http-lambda-proxy')
6
+const { onRequestNoOp, onResponse } = require('./../lib/default-hooks').lambda
7
8
// @TODO: update the list of target origins or proxy instances
9
const targets = [
@@ -21,6 +22,8 @@ gateway({
21
22
if (typeof target === 'string') {
23
proxyOpts.base = target
24
} else {
25
+ proxyOpts.onResponse = onResponse
26
+ proxyOpts.onRequest = onRequestNoOp
27
proxy = target
28
}
29
0 commit comments