function Client(port, host) { // TODO http.Client can be removed in v0.9. Until then leave this message. util._deprecationWarning('http', 'http.Client is a legacy interface' + ' and will be removed in the near future. Do not use it.'); host = host || 'localhost'; port = port || 80; this.host = host; this.port = port; this.agent = new Agent({ host: host, port: port, maxSockets: 1 }); }
exports.existsSync = function(path) { _deprecationWarning('path', '`path.exists` is now called `fs.exists`'); return require('fs').existsSync(path); };
exports.exists = function(path, callback) { _deprecationWarning('path', '`path.exists` is now called `fs.exists`'); require('fs').exists(path, callback); };