varfs=require('fs'),path=require('path'),union=require('../../lib');varserver=union.createServer({before:[function(req,res){if(req.url==="/foo"){res.text(201,"foo");}}],after:[functionLoggerStream(){varstream=newunion.ResponseStream();stream.once("pipe",function(req){console.log({res:this.res.statusCode,method:this.req.method});});returnstream;}]});server.listen(9080);console.log('union running on 9080');