UNPKG

@octokit/webhooks

Version:

GitHub webhook events toolset for Node.js

12 lines (11 loc) 264 B
function handleResponse(body, status = 200, headers = {}, response) { if (body === null) { return false; } headers["content-length"] = body.length.toString(); response.writeHead(status, headers).end(body); return true; } export { handleResponse };