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 9538fd0

Browse filesBrowse files
Lenny Markusjasnell
authored andcommitted
doc: clarify error events in HTTP module documentation
Make it clear that error with throw if error listener is not registered. PR-URL: #4275 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c6efd53 commit 9538fd0
Copy full SHA for 9538fd0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/http.markdown‎

Copy file name to clipboardExpand all lines: doc/api/http.markdown
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,8 @@ even if there is no data being written to the request body.
10631063

10641064
If any error is encountered during the request (be that with DNS resolution,
10651065
TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
1066-
on the returned request object.
1066+
on the returned request object. As with all `'error'` events, if no listeners
1067+
are registered the error will be thrown.
10671068

10681069
There are a few special headers that should be noted.
10691070

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.