Assesment SetA-1
const http = require('http');
const server = http.createServer((req, res) => {
res.setHeader('Set-Cookie', 'course_name=BCA');
res.end('Cookie "course_name" set to "BCA"');
});
const port = 3000;
server.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
Comments
Post a Comment