Commit 2bcde83
http2: allow passing FileHandle to respondWithFD
This seems to make sense if we want to promote the use
of `fs.promises`, although it’s not strictly necessary.
PR-URL: #29876
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent adee998 commit 2bcde83Copy full SHA for 2bcde83
File tree
Expand file treeCollapse file tree
6 files changed
+91
-32
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal
- fs
- http2
- test/parallel
Expand file treeCollapse file tree
6 files changed
+91
-32
lines changedOpen diff view settings
Collapse file
+6-3Lines changed: 6 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1439 | 1439 | |
1440 | 1440 | |
1441 | 1441 | |
| 1442 | + |
| 1443 | + |
| 1444 | + |
1442 | 1445 | |
1443 | 1446 | |
1444 | 1447 | |
1445 | 1448 | |
1446 | 1449 | |
1447 | 1450 | |
1448 | | - |
| 1451 | + |
1449 | 1452 | |
1450 | 1453 | |
1451 | 1454 | |
| ||
1491 | 1494 | |
1492 | 1495 | |
1493 | 1496 | |
1494 | | - |
1495 | | - |
| 1497 | + |
| 1498 | + |
1496 | 1499 | |
1497 | 1500 | |
1498 | 1501 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1948 | 1948 | |
1949 | 1949 | |
1950 | 1950 | |
1951 | | - |
| 1951 | + |
1952 | 1952 | |
1953 | 1953 | |
1954 | 1954 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+30-26Lines changed: 30 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
| ||
498 | 498 | |
499 | 499 | |
500 | 500 | |
501 | | - |
502 | | - |
503 | | - |
504 | | - |
505 | | - |
506 | | - |
507 | | - |
508 | | - |
509 | | - |
510 | | - |
511 | | - |
512 | | - |
513 | | - |
514 | | - |
515 | | - |
516 | | - |
517 | | - |
518 | | - |
519 | | - |
520 | | - |
521 | | - |
522 | | - |
523 | | - |
524 | | - |
525 | | - |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
526 | 530 | |
Collapse file
+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
82 | 82 | |
83 | 83 | |
84 | 84 | |
| 85 | + |
85 | 86 | |
86 | 87 | |
87 | 88 | |
| ||
2545 | 2546 | |
2546 | 2547 | |
2547 | 2548 | |
2548 | | - |
| 2549 | + |
| 2550 | + |
| 2551 | + |
| 2552 | + |
2549 | 2553 | |
2550 | 2554 | |
2551 | 2555 | |
|
Collapse file
test/parallel/test-http2-respond-file-fd-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-respond-file-fd-errors.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | - |
| 45 | + |
| 46 | + |
46 | 47 | |
47 | 48 | |
48 | 49 | |
|
Collapse file
test/parallel/test-http2-respond-file-filehandle.js
Copy file name to clipboard+47Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
0 commit comments