dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.72k stars 165 forks source link

Support current version of Restify #155

Closed daniel-ac-martin closed 4 years ago

daniel-ac-martin commented 4 years ago

Adds support for the current version of Restify by testing for the existence of its _onRequest method as discussed in #154.

A test was added, based on the existing test for Express.js, but it had to be removed again as it seems that Restify modifies Request's prototype and breaks one test for Express.js and one for Sails.js. The test is included in the commit history in case it is of some use in the future.