From 47cb2e81c1524d6ffec2f613c852d0c845f26683 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 23 Nov 2014 15:54:42 +0700 Subject: [PATCH] readme tweaks --- readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 1f2fd6d..8680da6 100644 --- a/readme.md +++ b/readme.md @@ -59,15 +59,15 @@ Encoding to be used on `setEncoding` of the response data. If null, the body is ##### options.timeout -Type: `number` +Type: `number` -Time in ms, after which request will be aborted and error event with `ETIMEDOUT` code will be emitted. +Milliseconds after which the request will be aborted and an error event with `ETIMEDOUT` code will be emitted. ##### callback(err, data, response) ###### err -`Error` object with `code` property. +`Error` object with HTTP status code as `code` property. ###### data @@ -77,6 +77,7 @@ The data you requested. The [response object](http://nodejs.org/api/http.html#http_http_incomingmessage). + ## Related See [sent](https://github.com/floatdrop/sent) if you need to upload something.