Skip to content

Commit fd75b25

Browse files
TimothyGuMylesBorins
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 3689813 commit fd75b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ added: v0.3.6
15291529
* `headers` {Object} An object containing request headers.
15301530
* `auth` {String} Basic authentication i.e. `'user:password'` to compute an
15311531
Authorization header.
1532-
* `agent` {String} Controls [`Agent`][] behavior. When an Agent is used request will
1532+
* `agent` {http.Agent|Boolean} Controls [`Agent`][] behavior. When an Agent is used request will
15331533
default to `Connection: keep-alive`. Possible values:
15341534
* `undefined` (default): use [`http.globalAgent`][] for this host and port.
15351535
* `Agent` object: explicitly use the passed in `Agent`.

0 commit comments

Comments
 (0)