GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • doc/api
    • http.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http.md‎

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 numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ added: v0.3.4
129129
* `timeout` {number} Socket timeout in milliseconds.
130130
This will set the timeout after the socket is connected.
131131

132+
`options` in [`socket.connect()`][] are also supported.
133+
132134
The default [`http.globalAgent`][] that is used by [`http.request()`][] has all
133135
of these values set to their respective defaults.
134136

@@ -2145,6 +2147,7 @@ not abort the request or do anything besides add a `'timeout'` event.
21452147
[`server.listen()`]: net.html#net_server_listen
21462148
[`server.timeout`]: #http_server_timeout
21472149
[`setHeader(name, value)`]: #http_request_setheader_name_value
2150+
[`socket.connect()`]: net.html#net_socket_connect_options_connectlistener
21482151
[`socket.setKeepAlive()`]: net.html#net_socket_setkeepalive_enable_initialdelay
21492152
[`socket.setNoDelay()`]: net.html#net_socket_setnodelay_nodelay
21502153
[`socket.setTimeout()`]: net.html#net_socket_settimeout_timeout_callback

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.