GeezerVison is showing github.com — http2: remove `streamError` from docs · nodejs/node@fcca2f7
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/http2.md -12Lines changed: 0 additions & 12 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1510,10 +1510,6 @@ added: v8.4.0 |
1510 | 1510 |
|
1511 | 1511 | * Extends: {net.Server} |
1512 | 1512 |
|
1513 | | -In `Http2Server`, there are no `'clientError'` events as there are in |
1514 | | -HTTP1. However, there are `'sessionError'`, and `'streamError'` events for |
1515 | | -errors emitted on the socket, or from `Http2Session` or `Http2Stream` instances. |
1516 | | - |
1517 | 1513 | #### Event: 'checkContinue' |
1518 | 1514 | <!-- YAML |
1519 | 1515 | added: v8.5.0 |
@@ -1563,14 +1559,6 @@ added: v8.4.0 |
1563 | 1559 | The `'sessionError'` event is emitted when an `'error'` event is emitted by |
1564 | 1560 | an `Http2Session` object associated with the `Http2Server`. |
1565 | 1561 |
|
1566 | | -#### Event: 'streamError' |
1567 | | -<!-- YAML |
1568 | | -added: v8.5.0 |
1569 | | ---> |
1570 | | - |
1571 | | -If a `ServerHttp2Stream` emits an `'error'` event, it will be forwarded here. |
1572 | | -The stream will already be destroyed when this event is triggered. |
1573 | | - |
1574 | 1562 | #### Event: 'stream' |
1575 | 1563 | <!-- YAML |
1576 | 1564 | added: v8.4.0 |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/http2/compat.js +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -115,9 +115,7 @@ function onStreamError(error) { |
115 | 115 | // |
116 | 116 | // errors in compatibility mode are |
117 | 117 | // not forwarded to the request |
118 | | - // and response objects. However, |
119 | | - // they are forwarded to 'streamError' |
120 | | - // on the server by Http2Stream |
| 118 | + // and response objects. |
121 | 119 | } |
122 | 120 |
|
123 | 121 | function onRequestPause() { |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-serverresponse-destroy.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,8 +7,7 @@ const http2 = require('http2'); |
7 | 7 | const Countdown = require('../common/countdown'); |
8 | 8 |
|
9 | 9 | // Check that destroying the Http2ServerResponse stream produces |
10 | | -// the expected result, including the ability to throw an error |
11 | | -// which is emitted on server.streamError |
| 10 | +// the expected result. |
12 | 11 |
|
13 | 12 | const errors = [ |
14 | 13 | 'test-error', |
|