Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在Nodejs中结束后访问响应有效负载?_Node.js - Fatal编程技术网

Node.js 在Nodejs中结束后访问响应有效负载?

Node.js 在Nodejs中结束后访问响应有效负载?,node.js,Node.js,如果我用 res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('okay'); 是否有可能访问响应对象并查看实际发送的头和负载?我已经用过了。我已经用过了。

如果我用

res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('okay');
是否有可能访问响应对象并查看实际发送的头和负载?

我已经用过了。我已经用过了。