Skip to content

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 29, 2023

ReadableByteStream is a variant of ReadableStream specialized for
bytes[1]. Given the performance benefits, this CL adds BYOB support
for Fetch by making Response.body a byte stream to allow for reading
with a bring-your-own-buffer(BYOB) reader.

The corresponding spec PR for this was landed at whatwg/fetch#1593.
Tests for reading from Blob with a BYOB reader were factored out, as
support for that will be implemented in follow-up CLs.

[1] https://streams.spec.whatwg.org/#readable-byte-stream

Low-Coverage-Reason: Behavior changes are covered by WPTs (i.e. response-consume-stream.any.js).
Bug: 1243329
Change-Id: I381b9f2272a7f1202fa748ae5c039ca0a998de00
Reviewed-on: https://chromium-review.googlesource.com/4573009
WPT-Export-Revision: 94b522f8145c49394398cf9d3d6aeb8d901328dc

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4573009 branch 6 times, most recently from d72b3c3 to 1b9657e Compare June 1, 2023 06:18
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4573009 branch from 1b9657e to b573cbc Compare June 1, 2023 06:25
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title WIP: Add byte reading support for Fetch Fetch: Support BYOB reading for Response.body Jun 1, 2023
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4573009 branch 3 times, most recently from 7ce3688 to 094f803 Compare June 1, 2023 09:55
ReadableByteStream is a variant of ReadableStream specialized for
bytes[1]. Given the performance benefits, this CL adds BYOB support
for Fetch by making Response.body a byte stream to allow for reading
with a bring-your-own-buffer(BYOB) reader.

The corresponding spec PR for this was landed at whatwg/fetch#1593.
Tests for reading from Blob with a BYOB reader were factored out, as
support for that will be implemented in follow-up CLs.

[1] https://streams.spec.whatwg.org/#readable-byte-stream

Low-Coverage-Reason: Behavior changes are covered by WPTs (i.e. response-consume-stream.any.js).
Bug: 1243329
Change-Id: I381b9f2272a7f1202fa748ae5c039ca0a998de00
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4573009 branch from 094f803 to 977cf38 Compare June 1, 2023 11:19
@chromium-wpt-export-bot
Copy link
Collaborator Author

Close this PR because the Chromium CL does not have exportable changes.

@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-4573009 branch June 2, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants