Add deprecation message for http.Client

pull/22966/head
Ryan Dahl 2011-12-23 17:42:27 -08:00
parent c2d9e62f16
commit 48a9a2d355
1 changed files with 3 additions and 0 deletions

View File

@ -1485,6 +1485,9 @@ exports._connectionListener = connectionListener;
// Legacy Interface
function Client(port, host) {
// TODO http.Client can be removed in v0.9. Until then leave this message.
console.trace('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;