Comparing version 0.2.3 to 0.2.4
@@ -118,3 +118,3 @@ /* | ||
callback(null, {headers: res.headers, body: responsebody}); | ||
callback(null, {headers: res.headers, statusCode: res.statusCode, body: responsebody}); | ||
}); | ||
@@ -224,3 +224,3 @@ | ||
callback(null, {headers: res.headers, body: responsebody}); | ||
callback(null, {headers: res.headers, statusCode: res.statusCode, body: responsebody}); | ||
}); | ||
@@ -227,0 +227,0 @@ |
{ | ||
"name": "httpreq", | ||
"description": "node-httpreq is a node.js library to do HTTP(S) requests the easy way", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sam Decrock", |
@@ -35,3 +35,3 @@ node-httpreq | ||
- body: custom body content you want to send | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ) and the body ( __res.body__ ) | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ), the http status code ( __res.statusCode__ ) and the body ( __res.body__ ) | ||
@@ -90,3 +90,3 @@ __Example without options__ | ||
- body: custom body content you want to send. Parameters are ignored when this is used. | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ) and the body ( __res.body__ ) | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ), the http status code ( __res.statusCode__ ) and the body ( __res.body__ ) | ||
@@ -149,3 +149,3 @@ __Example without extra options__ | ||
- binary: true/false (default: false), if true, res.body will a buffer containing the binary data | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ) and the body ( __res.body__ ) | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ), the http status code ( __res.statusCode__ ) and the body ( __res.body__ ) | ||
@@ -187,3 +187,3 @@ ```js | ||
- body: custom body content you want to send | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ) and the body ( __res.body__ ) | ||
- callback(err, res): A callback function which is called when the request is complete. __res__ contains the headers ( __res.headers__ ), the http status code ( __res.statusCode__ ) and the body ( __res.body__ ) | ||
@@ -190,0 +190,0 @@ __Example__ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76526