| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -251,19 +251,19 @@ added: v0.11.4 | |||
| 251 | 251 | ||
| 252 | 252 | Produces a socket/stream to be used for HTTP requests. | |
| 253 | 253 | ||
| 254 | - By default, this function behaves identically to [`net.createConnection(options)`][], | ||
| 254 | + By default, this function behaves identically to [`net.createConnection()`][], | ||
| 255 | 255 | synchronously returning the created socket. The optional `callback` parameter in the | |
| 256 | 256 | signature is **not** used by this default implementation. | |
| 257 | 257 | ||
| 258 | 258 | However, custom agents may override this method to provide greater flexibility, | |
| 259 | 259 | for example, to create sockets asynchronously. When overriding `createConnection`: | |
| 260 | 260 | ||
| 261 | - 1. **Synchronous socket creation**: The overriding method can return the | ||
| 262 | - socket/stream directly. | ||
| 263 | - 2. **Asynchronous socket creation**: The overriding method can accept the `callback` | ||
| 264 | - and pass the created socket/stream to it (e.g., `callback(null, newSocket)`). | ||
| 265 | - If an error occurs during socket creation, it should be passed as the first | ||
| 266 | - argument to the `callback` (e.g., `callback(err)`). | ||
| 261 | + 1. **Synchronous socket creation**: The overriding method can return the | ||
| 262 | + socket/stream directly. | ||
| 263 | + 2. **Asynchronous socket creation**: The overriding method can accept the `callback` | ||
| 264 | + and pass the created socket/stream to it (e.g., `callback(null, newSocket)`). | ||
| 265 | + If an error occurs during socket creation, it should be passed as the first | ||
| 266 | + argument to the `callback` (e.g., `callback(err)`). | ||
| 267 | 267 | ||
| 268 | 268 | The agent will call the provided `createConnection` function with `options` and | |
| 269 | 269 | this internal `callback`. The `callback` provided by the agent has a signature | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,7 @@ An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See | |||
| 64 | 64 | Like `http.Agent`, the `createConnection(options[, callback])` method can be overridden | |
| 65 | 65 | to customize how TLS connections are established. | |
| 66 | 66 | ||
| 67 | - > See [`http.Agent#createConnection()`][] for details on overriding this method, | ||
| 67 | + > See [`agent.createConnection()`][] for details on overriding this method, | ||
| 68 | 68 | > including asynchronous socket creation with a callback. | |
| 69 | 69 | ||
| 70 | 70 | ### `new Agent([options])` | |
@@ -742,6 +742,7 @@ statusCode: 200 | |||
| 742 | 742 | [`Agent`]: #class-httpsagent | |
| 743 | 743 | [`Session Resumption`]: tls.md#session-resumption | |
| 744 | 744 | [`URL`]: url.md#the-whatwg-url-api | |
| 745 | + [`agent.createConnection()`]: http.md#agentcreateconnectionoptions-callback | ||
| 745 | 746 | [`http.Agent(options)`]: http.md#new-agentoptions | |
| 746 | 747 | [`http.Agent`]: http.md#class-httpagent | |
| 747 | 748 | [`http.ClientRequest`]: http.md#class-httpclientrequest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,17 +4,14 @@ This file documents various terms and definitions used throughout the Node.js co | |||
| 4 | 4 | ||
| 5 | 5 | * **ABI**: [Application Binary Interface][] - Defines the interface between two binary program modules. | |
| 6 | 6 | * **AFAICT**: As Far As I Can Tell. | |
| 7 | - * **AFAICT**: As Far As I Can Tell. | ||
| 8 | - * **AFAIK**: As Far As I Know. | ||
| 9 | 7 | * **AFAIK**: As Far As I Know. | |
| 10 | 8 | * **API**: [Application Programming Interface][] - A set of rules and protocols that allows different software | |
| 11 | 9 | applications to communicate with each other. APIs are used to enable integration between different systems. | |
| 12 | 10 | * **ASAP**: As Soon As Possible. | |
| 13 | - * **ASLR**: Address Space Layout Randomization. A security technique that randomizes memory addresses to prevent certain attacks. | ||
| 11 | + * **ASLR**: Address Space Layout Randomization. A security technique that randomizes memory addresses | ||
| 12 | + to prevent certain attacks. | ||
| 14 | 13 | * **Backport**: The process of applying a fix or feature from a newer branch to an older supported | |
| 15 | 14 | branch (e.g., applying a security fix to an LTS release). | |
| 16 | - * **BE** ([Big Endian]): Byte order in which the most significant byte is stored first in memory. | ||
| 17 | - Opposite of **LE** (Little Endian). | ||
| 18 | 15 | * **BE**: Big [Endian][] - A Byte Order where the largest bit comes first. The opposite of **LE**. | |
| 19 | 16 | * **Bootstrap**: Early phase in the Node.js process startup - sets up the execution environment and loads internal | |
| 20 | 17 | modules. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments