node.js中的http.response.addTrailers方法使用说明
作者:bea
方法说明: 该棒法用来将HTTP trailing响应头添加到消息尾部。 语法: 代码如下: response.addTrailers(headers) 接收参数: headers 响应头信息 例子: 代码如下: response.writeHead(200, { 'Content-Type': 'text/plain', 'Trailer': 'Content-MD5' }); response.write(fileData); response.ad
方法说明:
该棒法用来将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();
有用 | 无用
该棒法用来将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();
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- 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方法使用说明
- node.js中的http.createClient方法使用说明
- node.js中的http.get方法使用说明
- node.js中的http.createServer方法使用说明
- node.js中的fs.writeFileSync方法使用说明