http-enhanced
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -11,5 +11,6 @@ var http = require('http'); | ||
http.IncomingMessage.prototype.saveData = function() { | ||
var self = this; | ||
this.data = ''; | ||
this.on('data', function(chunk) { | ||
req.data += chunk; | ||
self.data += chunk; | ||
}); | ||
@@ -16,0 +17,0 @@ }; |
{ | ||
"name": "http-enhanced", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"main": "index.js", | ||
"description": "Drop-in replacement for Node.js standard `http` API with various helpers.", | ||
"keywords": ["http", "enhanced", "maximal", "helpers", "streaming", "nodeps"], | ||
"keywords": [ | ||
"http", | ||
"enhanced", | ||
"maximal", | ||
"helpers", | ||
"streaming", | ||
"nodeps" | ||
], | ||
"homepage": "http://github.com/chbrown/http-enhanced", | ||
@@ -8,0 +15,0 @@ "bugs": "http://github.com/chbrown/http-enhanced/issues", |
@@ -11,2 +11,19 @@ # http-enhanced | ||
## Install | ||
At the command line from the [npm](https://npmjs.org/) registry: | ||
npm install http-enhanced | ||
Or from github: | ||
npm install git://github.com/chbrown/http-enhanced.git | ||
Or in your `package.json`: | ||
"dependencies" : { | ||
"http-enhanced": "*", | ||
... | ||
} | ||
## Usage | ||
@@ -47,2 +64,3 @@ | ||
}); | ||
}).listen(80); | ||
@@ -49,0 +67,0 @@ |
5772
48
119