mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
http: use util._deprecationWarning for deprecation warning
This commit is contained in:
committed by
Ben Noordhuis
parent
f0c629a36b
commit
d5047f5fe6
@@ -1590,8 +1590,8 @@ exports._connectionListener = connectionListener;
|
||||
|
||||
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.');
|
||||
util._deprecationWarning('http.Client', '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;
|
||||
|
||||
Reference in New Issue
Block a user