UNPKG

@octokit/webhooks

Version:

GitHub webhook events toolset for Node.js

13 lines (12 loc) 234 B
function handleResponse(body, status = 200, headers = {}) { if (body !== null) { headers["content-length"] = body.length.toString(); } return new Response(body, { status, headers }); } export { handleResponse };