in 0.7-PHP-Lambda-functions-with-Docker-container-images/src/index.php [27:40]
function APIResponse($body)
{
$headers = array(
"Content-Type"=>"application/json",
"Access-Control-Allow-Origin"=>"*",
"Access-Control-Allow-Headers"=>"Content-Type",
"Access-Control-Allow-Methods" =>"OPTIONS,POST"
);
return json_encode(array(
"statusCode"=>200,
"headers"=>$headers,
"body"=>$body
));
}