📜  aws lambda 发送 json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:10.828000             🧑  作者: Mango

代码示例1
let response = {
        statusCode: responseCode,
        headers: {
            "x-custom-header" : "my custom header value"
        },
        body: JSON.stringify(responseBody)
    };
    console.log("response: " + JSON.stringify(response))
    return response;