node-http

node-http.

node-http

Unify http interface in Node.

npm install node-http
var NodeHttp = require('node-http');
var nodeHttp = new Http;

.POST(String address, Mix data, [Function onComplete], [Function onError])

nodeHttp.on('buffer', function (buffer) {
 
});
nodeHttp.on(200, function (response) {
  
});
nodeHttp.on('Ok', function (response) {
 
});
 
nodeHttp.on('Not Found', function (response) {
 
});
  • parse charset from html and content-type header

MIT