appagent
Send requests to local HTTP servers (http.Server, express, connect or a function) with superagent.
Inspired by supertest's
request(app).method()
API.
Installation
Install the appagent
and superagent
packages from npm.
The superagent package should be installed alongside appagent
(it is not installed as a dependency of appagent - it expects it to
already be installed by a parent package).
$ npm install appagent superagent
Usage
var appagent = app = ; // Without installingvar request = ;request;request; // Install as a `client` property of an appappagent;appclient; // Or install globally on http.Server prototype, to make it available// on all appsappagent;
License
MIT