const http = require("http"); const url=require("url"); const hostName = "127.0.0.1"; const port = 3000; const server = http.createServer((req, res)=>{ switch(req.method){ case 'GET' : console.log(req.url); if(req.url === "/"){ res.setHeader("Content-Type", "text/plain"); res.writeHead(200); res.end("you send with GET method") }else if(req.url.substring(0,5) === '/data'){ const queryParams = url..