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

This commit is contained in:
Linus Groh 2022-07-18 08:09:11 +01:00
commit 58fda93ea2
Notes: sideshowbarker 2024-07-17 08:51:26 +09:00

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 { };