| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1× 1× 1× 1× | 'use strict';
const requestHandler = require('./requestHandler');
exports.send = (context, output) => {
// console.log("backend sending", JSON.stringify({
// hostname: output.hostname,
// protocol: output.protocol,
// headers: output.headers,
// body: output.body,
// path: output.path,
// method: output.method,
// }, null, 2));
const handler = requestHandler.getRequestHandler(context, output);
handler(context, output);
};
|