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: fix http response event, Agent#getName · nodejs/node@6a197ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http.markdown
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http.markdown‎

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 numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ connection can be reused. In the http agent, this returns
140140
CA, cert, ciphers, and other HTTPS/TLS-specific options that determine
141141
socket reusability.
142142

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+
143150
### agent.maxFreeSockets
144151

145152
By default set to 256. For Agents supporting HTTP KeepAlive, this
@@ -280,12 +287,6 @@ the client should send the request body.
280287
Emitted when a response is received to this request. This event is emitted only
281288
once. The `response` argument will be an instance of [`http.IncomingMessage`][].
282289

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-
289290
### Event: 'socket'
290291

291292
`function (socket) { }`

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.