Created
March 14, 2014 01:23
-
-
Save fengmk2/9540552 to your computer and use it in GitHub Desktop.
deprecate an old api
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
exports.Client = util.deprecate(Client, | |
'http.Client will be removed soon. Do not use it.'); | |
exports.createClient = util.deprecate(function(port, host) { | |
return new Client(port, host); | |
}, 'http.createClient is deprecated. Use `http.request` instead.'); | |
// from https://github.com/joyent/node/blob/v0.11.12/lib/http.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment