1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibWeb/Fetch: Implement Body's "fully read" function from the spec

Required by XHR's reliance on Fetch.
This commit is contained in:
Luke Wilde 2023-02-28 18:12:44 +00:00 committed by Linus Groh
parent 9aca54091a
commit ccdb1bcc4e
9 changed files with 121 additions and 42 deletions

View file

@ -41,6 +41,8 @@ public:
virtual ErrorOr<Optional<MimeSniff::MimeType>> mime_type_impl() const override;
virtual Optional<Infrastructure::Body&> body_impl() override;
virtual Optional<Infrastructure::Body const&> body_impl() const override;
virtual Bindings::PlatformObject& as_platform_object() override { return *this; }
virtual Bindings::PlatformObject const& as_platform_object() const override { return *this; }
[[nodiscard]] JS::NonnullGCPtr<Infrastructure::Response> response() const { return m_response; }