Method description:
This feature is outdated and the new version uses [http.request()][] instead.
A new HTTP client was built.
grammar:
The code copy is as follows:
http.createClient([port], [host])
Since this method belongs to the http module, the http module needs to be introduced before use (var http= require("http") )
Receive parameters:
post port
host host
Source code:
The code copy is as follows:
exports.createClient = util.deprecate(function(port, host) {
return new Client(port, host);
}, 'http.createClient is deprecated. Use `http.request` instead.');