diff --git a/doc/api/http.md b/doc/api/http.md index a916337287e109..f21d05ad564e2d 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -230,6 +230,21 @@ options.agent = keepAliveAgent; http.request(options, onResponseCallback); ``` +### `agent.options` + + + +* {Object} + +The options used by the agent when creating new connections. This is a shallow +copy of the `options` argument passed to the [`Agent`][] constructor, with +agent defaults and normalizations applied. + +For example, [`http.globalAgent.options`][] can be used as the base options +when creating another [`Agent`][] instance with additional custom settings. + ### `agent.createConnection(options[, callback])`