doc: improve agent.createConnection docs for http and https agents

PR-URL: https://github.com/nodejs/node/pull/58205
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
JaeHo Jang authored and Antoine du Hamel committed 2025-11-10 13:30:09 +01:00
1 parent f72880dbe3
commit 9632c398de
2 files changed
+31 -11

No files matched your search

+6
View File
@@ -61,6 +61,12 @@ changes:
An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See
[`https.request()`][] for more information.
Like `http.Agent`, the `createConnection(options[, callback])` method can be overridden
to customize how TLS connections are established.
> See [`http.Agent#createConnection()`][] for details on overriding this method,
> including asynchronous socket creation with a callback.
### `new Agent([options])`
<!-- YAML