Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http');
- http.createServer(function(req, res) {
- res.writeHead(200, {
- 'Content-Type': 'text/html'
- });
- res.write('first chunk');
- setTimeout(function () {
- res.end('after 2000 ms. this line will appear');
- }, 2000);
- }).listen(process.env.C9_PORT, "0.0.0.0");
Add Comment
Please, Sign In to add comment