Skip to content

Instantly share code, notes, and snippets.

@austinyun
Created August 30, 2012 10:00
Show Gist options
  • Save austinyun/3525257 to your computer and use it in GitHub Desktop.
Save austinyun/3525257 to your computer and use it in GitHub Desktop.
Stream API test
var http = require("http"),
oppressor = require("oppressor");
http.createServer(function (req, res) {
var s = oppressor(req);
s.end("OK, everything worked");
s.pipe(res);
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment