mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-16 11:58:28 +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);
|
||
|
|