Commit fb68487
http: return this from IncomingMessage#destroy()
This commit updates IncomingMessage#destroy() to return `this`
for consistency with other readable streams.
PR-URL: #32789
Fixes: #32772
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 1b24d3a commit fb68487Copy full SHA for fb68487
File tree
Expand file treeCollapse file tree
3 files changed
+17
-0
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/parallel
Expand file treeCollapse file tree
3 files changed
+17
-0
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1833 | 1833 | |
1834 | 1834 | |
1835 | 1835 | |
| 1836 | + |
| 1837 | + |
| 1838 | + |
| 1839 | + |
| 1840 | + |
1836 | 1841 | |
1837 | 1842 | |
1838 | 1843 | |
| 1844 | + |
1839 | 1845 | |
1840 | 1846 | |
1841 | 1847 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
| 117 | + |
117 | 118 | |
118 | 119 | |
119 | 120 | |
|
Collapse file
test/parallel/test-http-incoming-message-destroy.js
Copy file name to clipboard+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
0 commit comments