node.js中的http.response.addTrailers方法使用说明

时间:2014-12-14    点击:105   

方法说明:

该棒法用来将HTTP trailing响应头添加到消息尾部。

语法:

复制代码 代码如下:

response.addTrailers(headers)

接收参数:

headers          响应头信息

例子:

复制代码 代码如下:

response.writeHead(200, { 'Content-Type': 'text/plain',   'Trailer': 'Content-MD5' });
response.write(fileData);
response.addTrailers({'Content-MD5': "7895bf4b8828b55ceaf47747b4bca667"});
response.end();

node.js中的http.createClient方法使用说明
node.js中的http.get方法使用说明
node.js中的http.createServer方法使用说明
node.js中的fs.writeFile方法使用说明
node.js中的fs.writeFile方法使用说明
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved