2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

docs(README): corrected description of keepAlive option (#6872)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Howie Zhao
2025-04-26 03:08:54 +08:00
committed by GitHub
parent cdcfd214c1
commit 2d7911e52b
+3 -1
View File
@@ -551,7 +551,9 @@ These are the available config options for making requests. Only the `url` is re
// `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
// and https requests, respectively, in node.js. This allows options to be added like
// `keepAlive` that are not enabled by default.
// `keepAlive` that are not enabled by default before Node.js v19.0.0. After Node.js
// v19.0.0, you no longer need to customize the agent to enable `keepAlive` because
// `http.globalAgent` has `keepAlive` enabled by default.
httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),