diff options
author | Marcos Casagrande <marcoscvp90@gmail.com> | 2022-10-24 13:13:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 13:13:20 +0200 |
commit | b7d86b4bedbac8d7a200c36e7a63855210887ac4 (patch) | |
tree | f275bc4083f21626252f7d6f5b8bab3a06181e26 /core/01_core.js | |
parent | 873a5ce2eddb65cdfea7fc8bbcae3e8dfef5dfb9 (diff) |
perf(ext/streams): fast path when consuming body of tee'd stream (#16329)
Add a fast path for consuming the body of cloned `Request`/`Response`,
which is very common specially when using `cache` API.
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/01_core.js b/core/01_core.js index 04f0eba77..7bee019d9 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -323,6 +323,7 @@ close: (rid) => ops.op_close(rid), tryClose: (rid) => ops.op_try_close(rid), read: opAsync.bind(null, "op_read"), + readAll: opAsync.bind(null, "op_read_all"), write: opAsync.bind(null, "op_write"), writeAll: opAsync.bind(null, "op_write_all"), shutdown: opAsync.bind(null, "op_shutdown"), |