0.0.4 • Published 5 years ago
fetch-lambda v0.0.4
fetch-lambda
fetch for lambda bypassing api gateway
- only aws-lambda supported for now
- doesn't fully support fetch only the basics
- only a string body is supported
The payload sent and received from lambda assumes the api gateway format.
Only multiValueHeaders and multiValueQueryStringParameters are supported.
usage
const fetch = require('fetch-lambda')
fetch('aws-lambda://function:version/path', fetchOptions)
// if no :version is given then the latest lambda is invoked.