Created
July 24, 2016 14:55
-
-
Save kutec/7659bb46ab1441108da66978eee9f4d5 to your computer and use it in GitHub Desktop.
https://repl.it/CfWS/2 created by kutec
This file contains 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'); | |
var requesrHandler = function(req, res){ | |
res.writeHead(200, { | |
'content-Type': 'text/plain' | |
}); | |
res.end('Welcome...'); | |
}; | |
var server = http.createServer(requesrHandler); | |
server.listen(3000, 'localhost'); |
This file contains 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
node v5.0.0 linux/amd64 | |
>>> => Server { | |
domain: null, | |
_events: | |
{ request: [Function], | |
connection: [Function: connectionListener], | |
clientError: [Function] }, | |
_eventsCount: 3, | |
_maxListeners: undefined, | |
_connections: 0, | |
_handle: null, | |
_usingSlaves: false, | |
_slaves: [], | |
_unref: false, | |
allowHalfOpen: true, | |
pauseOnConnect: false, | |
httpAllowHalfOpen: false, | |
timeout: 120000, | |
_pendingResponseData: 0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment