apigateway-http-request
For use with AWS Lambda. Parses an incoming API Gateway event into a more familiar structure similar to an express req
.
Getting started
Here's an example AWS Lambda function that echos back incoming request body.
{ let req = ; // returns an ApigatewayHttpRequest console; // optionally use included response let body = timestamp: Date echo: reqbody ; let statusCode = 200; let headers = 'Some-Header': 'hi' ; // if no requestId is supplied one will be generated // let requestId = 'generated request id or one supplied by aws'; let res = body statusCode headers requestId; ; };