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 <admin@stephenbelanger.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Ben Ripkens authored and James M Snell committed 2015-12-30 12:04:03 -08:00
1 parent 46eee3018b
commit c280596944
1 file changed
+3
+3
View File
@@ -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