Skip to content

Commit 5dde410

Browse files
authored
Define return type of clientRequest.setTimeout
nodejs#1699 did not update documentation
1 parent f6e33ef commit 5dde410

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/http.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,8 @@ Once a socket is assigned to this request and is connected
496496
* `timeout` {Number} Milliseconds before a request is considered to be timed out.
497497
* `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
498498

499+
Returns `request`.
500+
499501
### request.write(chunk[, encoding][, callback])
500502
<!-- YAML
501503
added: v0.1.29

0 commit comments

Comments
 (0)