Skip to content
Snippets Groups Projects
Commit 8853e8a9 authored by Gunananthaa K B's avatar Gunananthaa K B
Browse files

init commit

parents
No related branches found
No related tags found
No related merge requests found
node_modules
\ No newline at end of file
const http = require('http');
const PORT = 3000;
const requestListener = (req,res)=>{
res.writeHead(200);
console.log(req.headers);
res.end("hello");
}
const server = http.createServer(requestListener);
server.listen(PORT);
\ No newline at end of file
node_modules
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Serving content</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
const http = require('http');
const PORT = 3000;
const requestListener = (req,res)=>{
res.writeHead(200);
console.log(req.headers);
res.end("hello");
}
const server = http.createServer(requestListener);
server.listen(PORT);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment