function sendResponse(response, type, data) {
    const chunk = Buffer.from(data, 'utf8');
    response.setHeader('Content-Type', type + '; charset=utf-8');
    response.setHeader('Content-Length', String(chunk.length));
    response.end(chunk);
}
/**
 * Helper function for sending a response using only the core Node server APIs.
 */
Helper function for sending a response using only the core Node server APIs.
Helper function for sending a response using only the core Node server APIs .
function sendResponse(response, type, data) {
    const chunk = Buffer.from(data, 'utf8');
    response.setHeader('Content-Type', type + '; charset=utf-8');
    response.setHeader('Content-Length', String(chunk.length));
    response.end(chunk);
}
function sendResponse ( response , type , data ) { const chunk = Buffer . from ( data , 'utf8' ) ; response . setHeader ( 'Content-Type' , type + '; charset=utf-8' ) ; response . setHeader ( 'Content-Length' , String ( chunk . length ) ) ; response . end ( chunk ) ; }
Helper function for sending a response using only the core Node server APIs.
Helper function for sending a response using only the core Node server APIs .