HTTP module: The HTTP module is a built-in module in Node.js that allows you to create HTTP servers and make HTTP requests. Here's an example of how to create an HTTP server in Node.js:
javascript
const http = require('http');
http.createServer((req, res) => {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello, World!');
}).listen(8080);
No comments:
Post a Comment