The Wayback Machine - https://web.archive.org/web/20250407172904/https://github.com/nodejs/node/commit/fd75b25cbf
Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Commit fd75b25

Browse filesBrowse files
TimothyGuMylesBorins
authored andcommitted
doc: fix type of http.request's agent option
PR-URL: #9584 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 3689813 commit fd75b25
Copy full SHA for fd75b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/api/http.md

Copy file name to clipboardexpand all lines: doc/api/http.md
+1-1
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.