Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add deprecation message for http.Client
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 24, 2011
1 parent c2d9e62 commit 48a9a2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/http.js
Expand Up @@ -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;
Expand Down

0 comments on commit 48a9a2d

Please sign in to comment.