mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-21 19:04:23 +00:00
19 lines
252 B
JavaScript
19 lines
252 B
JavaScript
var http= require("http");
|
|
|
|
var s = http.createServer(function(req,res) {
|
|
var total = "";
|
|
req.on("data",function(chunk){
|
|
total += chunk;
|
|
});
|
|
|
|
req.on("end",function(){
|
|
console.log(total);
|
|
});
|
|
|
|
console.log(req);
|
|
// body...
|
|
});
|
|
|
|
s.listen(80);
|
|
|