whatwg / streams

Streams Standard
https://streams.spec.whatwg.org/
Other
1.35k stars 160 forks source link

Add an abstraction to pull from buffer into ReadableStream #1263

Closed saschanaz closed 1 year ago

saschanaz commented 1 year ago

Intended to fix the Fetch spec issue https://github.com/whatwg/fetch/issues/1610.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

saschanaz commented 1 year ago

Good point! Using byte sequence sounds good to me. But we still have no definition for the operations, right?

domenic commented 1 year ago

Well, yes, but we have length. And I feel less bad about using common-sense definitions if the base type is well-defined. So: