GeezerVison is showing github.com — doc: fix http response event, Agent#getName · nodejs/node@6a197ec
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/http.markdown +7-6Lines changed: 7 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,6 +140,13 @@ connection can be reused. In the http agent, this returns |
140 | 140 | CA, cert, ciphers, and other HTTPS/TLS-specific options that determine |
141 | 141 | socket reusability. |
142 | 142 |
|
| 143 | +Options: |
| 144 | + |
| 145 | +- `host`: A domain name or IP address of the server to issue the request to. |
| 146 | +- `port`: Port of remote server. |
| 147 | +- `localAddress`: Local interface to bind for network connections when issuing |
| 148 | + the request. |
| 149 | + |
143 | 150 | ### agent.maxFreeSockets |
144 | 151 |
|
145 | 152 | By default set to 256. For Agents supporting HTTP KeepAlive, this |
@@ -280,12 +287,6 @@ the client should send the request body. |
280 | 287 | Emitted when a response is received to this request. This event is emitted only |
281 | 288 | once. The `response` argument will be an instance of [`http.IncomingMessage`][]. |
282 | 289 |
|
283 | | -Options: |
284 | | - |
285 | | -- `host`: A domain name or IP address of the server to issue the request to. |
286 | | -- `port`: Port of remote server. |
287 | | -- `socketPath`: Unix Domain Socket (use one of host:port or socketPath) |
288 | | - |
289 | 290 | ### Event: 'socket' |
290 | 291 |
|
291 | 292 | `function (socket) { }` |
|