summaryrefslogtreecommitdiff
path: root/test/disabled
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-10 17:21:36 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-10 17:27:03 -0700
commitbc695475b908ccf30e5016689328df37b678b870 (patch)
treec3c5617eadeb3f56141c7e52a526e372fd80ca6a /test/disabled
parentfe74283e1d29f64be38e42ae1be989a13050f3e4 (diff)
downloadnode-bc695475b908ccf30e5016689328df37b678b870.tar.gz
Add Stream base class with stream.pipe
Diffstat (limited to 'test/disabled')
-rw-r--r--test/disabled/pipe-test.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/disabled/pipe-test.js b/test/disabled/pipe-test.js
new file mode 100644
index 000000000..63ef73122
--- /dev/null
+++ b/test/disabled/pipe-test.js
@@ -0,0 +1,20 @@
+/*
+ * try with
+ * curl -d @/usr/share/dict/words http://localhost:8000/123
+ */
+
+http = require('http');
+
+s = http.Server(function (req, res) {
+ console.log(req.headers);
+
+ req.pipe(process.stdout, { end: false });
+
+ req.on('end', function () {
+ res.writeHead(200);
+ res.write("thanks");
+ res.end();
+ });
+});
+
+s.listen(8000);