mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
LibWeb: Add a 'get a reader' helper method on ReadableStream
This commit is contained in:
parent
da408cb09a
commit
9ce0c5914b
Notes:
github-actions[bot]
2024-12-25 11:03:14 +00:00
Author: https://github.com/shannonbooth
Commit: 9ce0c5914b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3029
Reviewed-by: https://github.com/kennethmyhra ✅
5 changed files with 14 additions and 6 deletions
|
@ -105,6 +105,7 @@ public:
|
|||
State state() const { return m_state; }
|
||||
void set_state(State value) { m_state = value; }
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<ReadableStreamDefaultReader>> get_a_reader();
|
||||
WebIDL::ExceptionOr<void> pull_from_bytes(ByteBuffer);
|
||||
WebIDL::ExceptionOr<void> enqueue(JS::Value chunk);
|
||||
void set_up_with_byte_reading_support(GC::Ptr<PullAlgorithm> = {}, GC::Ptr<CancelAlgorithm> = {}, double high_water_mark = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue