Skip to content

Instantly share code, notes, and snippets.

@kutec
Created July 24, 2016 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutec/7659bb46ab1441108da66978eee9f4d5 to your computer and use it in GitHub Desktop.
Save kutec/7659bb46ab1441108da66978eee9f4d5 to your computer and use it in GitHub Desktop.
https://repl.it/CfWS/2 created by kutec
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');
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