diff --git a/readme.md b/readme.md index 5617f0c..2d658c5 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,7 @@ $ npm install --save got ```js var got = require('got'); -got('http://todomvc.com', function (err, data) { +got('http://todomvc.com', function (err, data, res) { console.log(data); //=> ... }); @@ -47,7 +47,15 @@ Type: `object` Any of the [`http.request`](http://nodejs.org/api/http.html#http_http_request_options_callback) options. -##### callback(err, data, res) +##### callback(err, data, response) + +###### data + +The data you requested. + +###### response + +The [response object](http://nodejs.org/api/http.html#http_http_incomingmessage). ## License