mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibWeb: Add ReadableStream.locked/cancel()/getReader()
This commit is contained in:
parent
d8710aa604
commit
36ca1386e8
6 changed files with 63 additions and 1 deletions
|
@ -1,8 +1,17 @@
|
|||
// Dummy definition so we can use ReadableStream as a type in Fetch.
|
||||
#import <Streams/ReadableStreamDefaultReader.idl>
|
||||
|
||||
// https://streams.spec.whatwg.org/#readablestream
|
||||
[Exposed=*, Transferable]
|
||||
interface ReadableStream {
|
||||
// FIXME: optional QueuingStrategy strategy = {}
|
||||
constructor(optional object underlyingSource);
|
||||
|
||||
readonly attribute boolean locked;
|
||||
|
||||
Promise<undefined> cancel(optional any reason);
|
||||
// FIXME: optional ReadableStreamGetReaderOptions options = {}
|
||||
ReadableStreamReader getReader();
|
||||
};
|
||||
|
||||
// FIXME: typedef (ReadableStreamDefaultReader or ReadableStreamBYOBReader) ReadableStreamReader;
|
||||
typedef ReadableStreamDefaultReader ReadableStreamReader;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue