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

LibWeb: Add Blob to Fetch's Body::SourceType variant

This commit is contained in:
Linus Groh 2022-07-18 08:09:11 +01:00
parent c501453425
commit 58fda93ea2

View file

@ -8,15 +8,17 @@
#include <AK/ByteBuffer.h>
#include <AK/Forward.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Optional.h>
#include <AK/Variant.h>
#include <LibWeb/FileAPI/Blob.h>
namespace Web::Fetch {
// https://fetch.spec.whatwg.org/#concept-body
class Body final {
public:
using SourceType = Variant<Empty, ByteBuffer>;
using SourceType = Variant<Empty, ByteBuffer, NonnullRefPtr<FileAPI::Blob>>;
struct ReadableStreamDummy { };