INNER CODE UNIT · JavaScript

normalizedResponse

lufzle/chromda · src/helpers/normalizeResponse.js:13

const normalizedResponse = (event, response) => {
  if ("httpMethod" in event) {
    return {
      "statusCode": 200,
      "body": JSON.stringify(response),
      "isBase64Encoded": false
    };
  }
  else {
    return response;
  }
};

module.exports = normalizedResponse;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…