MCPcopy Create free account
hub / github.com/serverless/examples / buildResponse

Function buildResponse

aws-node-github-check/libs/response-lib.js:1–6  ·  view source on GitHub ↗
(statusCode, body)

Source from the content-addressed store, hash-verified

1function buildResponse(statusCode, body) {
2 return {
3 statusCode,
4 body: JSON.stringify(body),
5 };
6}
7
8function buildGithubPayload(state, description) {
9 return {

Callers 2

successFunction · 0.85
failureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected