0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00

Add deprecation message for http.Client

This commit is contained in:
Ryan Dahl 2011-12-23 17:42:27 -08:00
parent c2d9e62f16
commit 48a9a2d355

View File

@ -1485,6 +1485,9 @@ exports._connectionListener = connectionListener;
// Legacy Interface // Legacy Interface
function Client(port, host) { 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'; host = host || 'localhost';
port = port || 80; port = port || 80;
this.host = host; this.host = host;