function done()

in lambda/index.js [155:170]


function done(statusCode, body, contentType, callback, headers) {
  full_headers = {
    'Content-Type': contentType
  }

  if(headers) {
    full_headers = Object.assign(full_headers, headers);
  }

  callback(null, {
    statusCode: statusCode,
    body: body,
    headers: full_headers,
    isBase64Encoded: false,
  });
}