constBuiltTime=require('./built-time')
module.exports=(req, res)=>{
res.setHeader('content-type','text/plain');
res.end(`
This Lambda was built at ${newDate(BuiltTime)}.
The current time is ${newDate()}
`)}

For each invocation of a Node.js lambda, two objects, request and response, are passed to the function. These objects are the standard HTTP request and response objects given and used by Node.js.

With many Node.js-based frameworks like Express also frequently dealing with these HTTP request and response objects, you may be able to use them in your Node.js lambda. The following lambda example, using Express, accepts a JSON body in the POST request, and returns a stringified version of it.