Files
Praktika4/task12/1/app.js
kogleee 3dbd9654c2 final
2023-11-08 13:17:48 +03:00

14 lines
376 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var http = require('http');
http.createServer(function (request, response) {
console.log('Url: ' + request.url);
console.log('Тип запроса: ' + request.method);
console.log(
'User-Agent: ' + request.headers['user-agent']
);
console.log('Все заголовки');
console.log(request.headers);
response.end();
}).listen(3000);