Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a197ec

Browse filesBrowse files
mdouglassMyles Borins
authored andcommitted
doc: fix http response event, Agent#getName
Removes the options block from the http 'response' event and attaches it to Agent#getName where it belongs. Removes socketPath and documents localAddress option. PR-URL: #5993 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 292b1b7 commit 6a197ec
Copy full SHA for 6a197ec

File tree

Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.