mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17: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:
parent
9aca54091a
commit
ccdb1bcc4e
9 changed files with 121 additions and 42 deletions
|
@ -74,6 +74,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::Request> request() const { return m_request; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue