We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5208abe commit 7097ecaCopy full SHA for 7097eca
1 file changed
doc/api/http.markdown
@@ -393,6 +393,10 @@ Options:
393
- `path`: Request path. Should include query string and fragments if any.
394
E.G. `'/index.html?page=12'`
395
- `headers`: An object containing request headers.
396
+- `agent`: Controls `Agent` behavior. Possible values:
397
+ - `undefined` (default): use default `Agent` for this host and port.
398
+ - `Agent` object: explicitly use the passed in `Agent`.
399
+ - `false`: explicitly generate a new `Agent` for this host and port. `Agent` will not be re-used.
400
401
`http.request()` returns an instance of the `http.ClientRequest`
402
class. The `ClientRequest` instance is a writable stream. If one needs to
0 commit comments