1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

LibWeb: Use the stream teeing methods for cloning Fetch response bodies

This commit is contained in:
Timothy Flynn 2024-01-28 14:21:32 -05:00 committed by Andreas Kling
parent 6981ddfe13
commit 66959bcc09
2 changed files with 6 additions and 23 deletions

View file

@ -39,7 +39,7 @@ public:
[[nodiscard]] SourceType const& source() const { return m_source; }
[[nodiscard]] Optional<u64> const& length() const { return m_length; }
[[nodiscard]] JS::NonnullGCPtr<Body> clone(JS::Realm&) const;
[[nodiscard]] JS::NonnullGCPtr<Body> clone(JS::Realm&);
WebIDL::ExceptionOr<void> fully_read(JS::Realm&, ProcessBodyCallback process_body, ProcessBodyErrorCallback process_body_error, TaskDestination task_destination) const;