Closed x-077 closed 5 years ago
hi @matth-c3, as described:
async onRequest (req, reply) {
// // we can optionally reply from here if required
// reply.send('Hello World!')
//
// return true // truthy value returned will abort the request forwarding
},
The shouldAbortProxy
holds the result of the onRequest hook execution, it allows developers to completely abort the request forwarding at gateway level.
Use cases:
Hello,
what is the purpose of 'shouldAbortProxy' in :
https://github.com/jkyberneees/fastify-gateway/blob/master/index.js#L6-L8 ?
Thanks