mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: fix type of http.request's agent option
PR-URL: https://github.com/nodejs/node/pull/9584 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
3689813fdd
commit
fd75b25cbf
1 file changed
+1
-1
+1
-1
@@ -1529,7 +1529,7 @@ added: v0.3.6
|
||||
* `headers` {Object} An object containing request headers.
|
||||
* `auth` {String} Basic authentication i.e. `'user:password'` to compute an
|
||||
Authorization header.
|
||||
* `agent` {String} Controls [`Agent`][] behavior. When an Agent is used request will
|
||||
* `agent` {http.Agent|Boolean} Controls [`Agent`][] behavior. When an Agent is used request will
|
||||
default to `Connection: keep-alive`. Possible values:
|
||||
* `undefined` (default): use [`http.globalAgent`][] for this host and port.
|
||||
* `Agent` object: explicitly use the passed in `Agent`.
|
||||
|
||||
Reference in new issue
Block a user