Im using express with node.js, and testing certain routes. I\'m doing this tute at http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/>
Just call res.send inside of a setTimeout:
res.send
setTimeout((function() {res.send(items)}), 2000);