Wrapper for the retest library for co-like interfaces (generators)
Simple wrapper for the retest library for co-like interfaces (node.js generators) using thunks.
Currently you must use the
--harmony-generators flag when running node 0.11.x to get access to generators.
npm install co-retest --save-dev
You may pass a
http.Server, function or string to
retest() - if the server is not listening for connections it will be bound to an ephemeral port so there is no need to keep track of ports.
var co = ;var retest = ;var express = ;var app = ;app;;
All API methods from retest work as usual, but every method returns a thunkified version of request for use with
Please note: The thunkified function return can be called multiple times to get multiple results.