node.js中的http.createClient方法使用说明
作者:bea
方法说明: 此功能已过时,新版本使用 [http.request()][] 来代替它。 构建了一种新的HTTP客户端。 语法: 代码如下: http.createClient([port], [host]) 由于该方法属于http模块,使用前需要引入http模块(var http= require(“http”) ) 接收参数: post 端口 host 主机 源码: 代码如下: exports.createClient = util.deprecate(fu
方法说明:
此功能已过时,新版本使用 [http.request()][] 来代替它。
构建了一种新的HTTP客户端。
语法:
代码如下:
http.createClient([port], [host])
由于该方法属于http模块,使用前需要引入http模块(var http= require(“http”) )
接收参数:
post 端口
host 主机
源码:
代码如下:
exports.createClient = util.deprecate(function(port, host) {
return new Client(port, host);
}, 'http.createClient is deprecated. Use `http.request` instead.');
有用 | 无用
此功能已过时,新版本使用 [http.request()][] 来代替它。
构建了一种新的HTTP客户端。
语法:
代码如下:
http.createClient([port], [host])
由于该方法属于http模块,使用前需要引入http模块(var http= require(“http”) )
接收参数:
post 端口
host 主机
源码:
代码如下:
exports.createClient = util.deprecate(function(port, host) {
return new Client(port, host);
}, 'http.createClient is deprecated. Use `http.request` instead.');
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- node.js中的socket.io的广播消息
- 超级简单的jquery操作表格方法
- node.js中的fs.link方法使用说明
- node.js中的fs.symlinkSync方法使用说明
- jQuery中的编程范式详解
- node.js中的fs.symlink方法使用说明
- node.js中的fs.utimesSync方法使用说明
- node.js中的fs.utimes方法使用说明
- node.js中的fs.truncateSync方法使用说明
- node.js中的fs.truncate方法使用说明
- node.js中的fs.unlinkSync方法使用说明
- node.js中的fs.unlink方法使用说明
- 30个经典的jQuery代码开发技巧
- node.js中的fs.fsync方法使用说明
- innerHTML在IE中报错解决方案
- node.js中的fs.ftruncate方法使用说明
- node.js中的fs.fsyncSync方法使用说明
- node.js中的fs.writeSync方法使用说明
- node.js中的fs.write方法使用说明