3.0.0-rc.3 • Published 11 years ago
ahr v3.0.0-rc.3
Abstract HTTP Request
AHR is a middleware framework for http clients (Browser and NodeJS).
Think connect
, but for clients.
API
- AHR.create()
- AHR#http()
- request
- response
- AHR#use()
- AHR#extend()
Example
var ahr = require('ahr')
, client
, request
;
client = ahr.create()
.extend(ahr.Http())
.use(ahr.json())
;
req = client.get("http://foobar3000.com/echo/example.json");
req.on('complete', function (data) {
});
req.on('progress', function () {
// whatever
});
req.on('data', function () {
// whatever
});
req.on('end', function () {
// whatever
});
req.on('response', function (res) {
res.on('progress', function () {
// whatever
});
res.on('data', function () {
// whatever
});
res.on('end', function () {
// whatever
});
});
3.0.0-rc.3
11 years ago
3.0.0-rc.2
11 years ago
3.0.0-rc.0
11 years ago
3.0.0-rc
11 years ago
0.9.12
13 years ago
0.9.11
13 years ago
0.9.10
13 years ago
0.9.9
13 years ago
0.9.6
13 years ago
0.9.5
13 years ago
0.9.3
13 years ago
0.9.2
13 years ago
0.9.1
13 years ago
0.9.0
13 years ago
0.8.1
13 years ago
0.8.0
13 years ago
0.6.0
13 years ago