08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

16
node_modules/shoe/test/server.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
var http = require('http');
var shoe = require('../');
var through = require('through');
var server = http.createServer(function (req, res) {
res.statusCode = 404;
res.end('not found\n');
});
server.listen(process.env.PORT);
var sock = shoe(function (stream) {
stream.pipe(through(function (buf) {
this.queue(buf.toString('utf8').toUpperCase());
})).pipe(stream);
});
sock.install(server, '/sock');