(event, responseStream, _context)
| 3 | const { streamifyResponse } = require('lambda-stream') |
| 4 | |
| 5 | const handler = async (event, responseStream, _context) => { |
| 6 | // As an example, convert event to a readable stream. |
| 7 | requestStream = Readable.from(Buffer.from(JSON.stringify({ hello: 'world' }))) |
| 8 | |
| 9 | await pipeline(requestStream, responseStream) |
| 10 | } |
| 11 | |
| 12 | module.exports.gzip = streamifyResponse(handler) |
no outgoing calls
no test coverage detected
searching dependent graphs…