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 d3e8bcc commit 52ed6eeCopy full SHA for 52ed6ee
1 file changed
docs/README.md
@@ -201,6 +201,11 @@ module.exports.handler = serverless(service)
201
onResponse (req, res, stream) {
202
// do some post-processing here
203
// ...
204
+ },
205
+ onError (err, req, res) {
206
+ // called when the request pipeline throws (e.g., onRequest error, proxy failure)
207
+ // hook failures are silently caught — the original error still propagates to the client
208
+ // can be sync or async
209
}
210
211
// if proxyType= 'http', other options allowed https://www.npmjs.com/package/fast-proxy-lite#opts
0 commit comments