summaryrefslogtreecommitdiff
path: root/core/01_core.js
diff options
context:
space:
mode:
authorMarcos Casagrande <marcoscvp90@gmail.com>2022-10-24 13:13:20 +0200
committerGitHub <noreply@github.com>2022-10-24 13:13:20 +0200
commitb7d86b4bedbac8d7a200c36e7a63855210887ac4 (patch)
treef275bc4083f21626252f7d6f5b8bab3a06181e26 /core/01_core.js
parent873a5ce2eddb65cdfea7fc8bbcae3e8dfef5dfb9 (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.js1
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"),