MCPcopy Create free account
hub / github.com/cdk-patterns/serverless / createResponse

Function createResponse

the-simple-webservice/csharp/lambda-fns/lambda.js:19–25  ·  view source on GitHub ↗
(statusCode, body)

Source from the content-addressed store, hash-verified

17};
18
19const createResponse = (statusCode, body) => {
20 return response = {
21 headers: { 'Content-Type': 'text/html' },
22 statusCode,
23 body
24 };
25}

Callers 1

lambda.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected