1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibWeb: Add Streams::ReadableStreamDefaultReader::read_all_bytes

This commit is contained in:
Shannon Booth 2023-06-17 15:26:20 +12:00 committed by Andreas Kling
parent 46f9a49bd8
commit 3df10d7fb6
2 changed files with 18 additions and 0 deletions

View file

@ -66,6 +66,8 @@ public:
virtual ~ReadableStreamDefaultReader() override = default;
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> read();
WebIDL::ExceptionOr<void> read_all_bytes(ReadLoopReadRequest::SuccessSteps, ReadLoopReadRequest::FailureSteps);
WebIDL::ExceptionOr<void> release_lock();
SinglyLinkedList<NonnullRefPtr<ReadRequest>>& read_requests() { return m_read_requests; }