got
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -41,3 +41,3 @@ 'use strict'; | ||
get(urlLib.resolve(url, res.headers.location), cb); | ||
get(urlLib.resolve(url, res.headers.location), opts, cb); | ||
return; | ||
@@ -67,3 +67,3 @@ } | ||
res.once('end', function () { | ||
cb(null, ret); | ||
cb(null, ret, res); | ||
}); | ||
@@ -70,0 +70,0 @@ }).once('error', cb); |
{ | ||
"name": "got", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "Simplified HTTP/HTTPS requests", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -24,3 +24,3 @@ # got [![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) | ||
got('http://todomvc.com', function (err, data) { | ||
got('http://todomvc.com', function (err, data, res) { | ||
console.log(data); | ||
@@ -51,7 +51,15 @@ //=> <!doctype html> ... | ||
##### callback(err, data) | ||
##### callback(err, data, response) | ||
###### data | ||
The data you requested. | ||
###### response | ||
The [response object](http://nodejs.org/api/http.html#http_http_incomingmessage). | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3290
1
64