mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 12:49:05 +00:00
LibWeb: Add ReadableStream.locked/cancel()/getReader()
This commit is contained in:
parent
d8710aa604
commit
36ca1386e8
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/mattco98
Commit: 36ca1386e8
Pull-request: https://github.com/SerenityOS/serenity/pull/18109
Reviewed-by: https://github.com/linusg ✅
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