var http = require('http'); var server = http.createServer(function (req,res) { // confirm request console.log(`headers: ${JSON.stringify(req.headers)}`); console.log(`httpVersion: ${req.httpVersion}`); console.log(`method: ${req.method}`); console.log(`url: ${req.url}`); // response res.writeHeader(200, {'Content-Type': 'application/json'}); res.end(JSON.stringify({ 'foo': 'bar'})); }); server.li
{{#tags}}- {{label}}
{{/tags}}