swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.13k stars 102 forks source link

better error message when invoking local lambda server with incorrect http method #157

Closed tomerd closed 4 years ago

tomerd commented 4 years ago

motivation: nicer error messages

changes: return 405 when using wrong http method on the lambda invocatoin endpoint (local debug server)

tomerd commented 4 years ago

closes #146

@fabianfett @helje5 this is a minimal fix for the most common issue which @helje5 ran into. I agree with @fabianfett idea of addressing more broadly by separating the external facing server and the internal one

tomerd commented 4 years ago

5.3 failure is due to swift-format, can ignore for now