Skip to content

Commit 89216a4

Browse files
TimothyGuaddaleax
authored andcommitted
doc: fix type of http.request's agent option
PR-URL: #9584 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 34c8b0b commit 89216a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ added: v0.3.6
15181518
* `headers` {Object} An object containing request headers.
15191519
* `auth` {String} Basic authentication i.e. `'user:password'` to compute an
15201520
Authorization header.
1521-
* `agent` {String} Controls [`Agent`][] behavior. When an Agent is used request will
1521+
* `agent` {http.Agent|Boolean} Controls [`Agent`][] behavior. When an Agent is used request will
15221522
default to `Connection: keep-alive`. Possible values:
15231523
* `undefined` (default): use [`http.globalAgent`][] for this host and port.
15241524
* `Agent` object: explicitly use the passed in `Agent`.

0 commit comments

Comments
 (0)