SHARE
TWEET

Untitled

a guest Jun 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // app.js
  2.  
  3. const http = require('http');
  4.  
  5. // Crie uma instância do servidor http para manipular solicitações HTTP
  6. let app = http.createServer((req, res) => {
  7.     res.writeHead(200, {'Content-Type': 'text/plain'});
  8.  
  9.     res.end('Hello World!n');
  10. });
  11.  
  12. // Inicie o servidor na porta 80
  13. app.listen(80, '127.0.0.1');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top