summaryrefslogtreecommitdiff
path: root/lib/http.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http.js b/lib/http.js
index a9cfeddeea..cead865749 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -1,6 +1,7 @@
'use strict';
const util = require('util');
+const internalUtil = require('internal/util');
const EventEmitter = require('events').EventEmitter;
@@ -91,9 +92,8 @@ Client.prototype.request = function(method, path, headers) {
return c;
};
-exports.Client = util.deprecate(Client,
- 'http.Client will be removed soon. Do not use it.');
+exports.Client = internalUtil.deprecate(Client, 'http.Client is deprecated.');
-exports.createClient = util.deprecate(function(port, host) {
+exports.createClient = internalUtil.deprecate(function(port, host) {
return new Client(port, host);
-}, 'http.createClient is deprecated. Use `http.request` instead.');
+}, 'http.createClient is deprecated. Use http.request instead.');