GeezerVison is showing github.com — doc: update http doc for new Agent()/support options in socket.connect() · nodejs/node@a7f36dd
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.md +3Lines changed: 3 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -129,6 +129,8 @@ added: v0.3.4 |
129 | 129 | * `timeout` {number} Socket timeout in milliseconds. |
130 | 130 | This will set the timeout after the socket is connected. |
131 | 131 |
|
| 132 | +`options` in [`socket.connect()`][] are also supported. |
| 133 | + |
132 | 134 | The default [`http.globalAgent`][] that is used by [`http.request()`][] has all |
133 | 135 | of these values set to their respective defaults. |
134 | 136 |
|
@@ -2145,6 +2147,7 @@ not abort the request or do anything besides add a `'timeout'` event. |
2145 | 2147 | [`server.listen()`]: net.html#net_server_listen |
2146 | 2148 | [`server.timeout`]: #http_server_timeout |
2147 | 2149 | [`setHeader(name, value)`]: #http_request_setheader_name_value |
| 2150 | +[`socket.connect()`]: net.html#net_socket_connect_options_connectlistener |
2148 | 2151 | [`socket.setKeepAlive()`]: net.html#net_socket_setkeepalive_enable_initialdelay |
2149 | 2152 | [`socket.setNoDelay()`]: net.html#net_socket_setnodelay_nodelay |
2150 | 2153 | [`socket.setTimeout()`]: net.html#net_socket_settimeout_timeout_callback |
|