Last active
July 20, 2016 05:49
-
-
Save mariyadiminsky/27f2e753422cf43de88aeec284550425 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
// STEP #1.5 Basic Server Continued... | |
var bunnyServer = http.createServer(); | |
bunnyServer.on('request', function(req, res) { | |
res.writeHead(200); | |
res.end('<html><body><h1>Bunny Server is live!<br /><img src="https://cdn.meme.am/instances/400x/55347780.jpg"></h1></body></html>'); | |
}).listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment