From: Ben Ripkens Date: Mon, 28 Dec 2015 23:10:21 +0000 (+0100) Subject: doc: explain ClientRequest#setTimeout time unit X-Git-Tag: v4.2.5~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf56d509b9f258ff80190e0fec6c269ef7713c85;p=platform%2Fupstream%2Fnodejs.git doc: explain ClientRequest#setTimeout time unit State a time unit for the timeout parameter in ClientRequest#setTimeout PR-URL: https://github.com/nodejs/node/pull/4458 Reviewed-By: Stephen Belanger Reviewed-By: James M Snell --- diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 6562a46..f62b248 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -375,6 +375,9 @@ Once a socket is assigned to this request and is connected Once a socket is assigned to this request and is connected [`socket.setTimeout()`][] will be called. +* `timeout` {Number} Milliseconds before a request is considered to be timed out. +* `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. + ### request.write(chunk[, encoding][, callback]) Sends a chunk of the body. By calling this method