From 20dc1fac63095b59e0e3f10d885687b45f40b367 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sat, 12 Nov 2016 10:17:20 -0800 Subject: [PATCH] doc: fix type of http.request's `agent` option PR-URL: https://github.com/nodejs/node/pull/9584 Reviewed-By: Luigi Pinca Reviewed-By: Roman Reiss --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 4888efa9e7085f..ea6c04604df333 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1518,7 +1518,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`.