diff --git a/doc/api/http.md b/doc/api/http.md index 0e6eaf2155f6aa..ab74b49e7e587c 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -180,9 +180,6 @@ changes: `options` in [`socket.connect()`][] are also supported. -The default [`http.globalAgent`][] that is used by [`http.request()`][] has all -of these values set to their respective defaults. - To configure any of them, a custom [`http.Agent`][] instance must be created. ```mjs @@ -3652,13 +3649,15 @@ changes: - version: - v19.0.0 pr-url: https://github.com/nodejs/node/pull/43522 - description: The agent now uses HTTP Keep-Alive by default. + description: The agent now uses HTTP Keep-Alive and a 5 second timeout by + default. --> * {http.Agent} Global instance of `Agent` which is used as the default for all HTTP client -requests. +requests. Diverges from a default `Agent` configuration by having `keepAlive` +enabled and a `timeout` of 5 seconds. ## `http.maxHeaderSize` diff --git a/doc/api/https.md b/doc/api/https.md index 8ae80d28b61654..c3dfe3466643e7 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -327,10 +327,13 @@ changes: - version: - v19.0.0 pr-url: https://github.com/nodejs/node/pull/43522 - description: The agent now uses HTTP Keep-Alive by default. + description: The agent now uses HTTP Keep-Alive and a 5 second timeout by + default. --> -Global instance of [`https.Agent`][] for all HTTPS client requests. +Global instance of [`https.Agent`][] for all HTTPS client requests. Diverges +from a default [`https.Agent`][] configuration by having `keepAlive` enabled and +a `timeout` of 5 seconds. ## `https.request(options[, callback])`