Browse Source

Add deprecation message for http.Client

v0.7.4-release
Ryan Dahl 13 years ago
parent
commit
48a9a2d355
  1. 3
      lib/http.js

3
lib/http.js

@ -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;

Loading…
Cancel
Save