-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Description
- Version: v4.4.3
- Platform: Mac os
- Subsystem:
var http = require('http');
var prevReq = null;
var prevRes = null;
var server = http.createServer(function(req, res){
if(!prevReq){
prevReq = req;
prevRes = res;
}else{
console.log('req', %HaveSameMap(req, prevReq));
console.log('res', %HaveSameMap(res, prevRes));
}
res.end('hello word');
});
server.listen(3337);
console.log('server running at http://127.0.0.1:3337');
use node --allow-natives-syntax index.js
to test.
Metadata
Metadata
Assignees
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.