summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Infrastructure
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-07-18 08:09:11 +0100
committerLinus Groh <mail@linusgroh.de>2022-07-18 08:11:25 +0100
commit58fda93ea2b75e89e9bf08c11829612e21b73c6a (patch)
tree63670b614126e896ddcce0008a7df9ee15e84127 /Userland/Libraries/LibWeb/Fetch/Infrastructure
parentc50145342538ba98ccc78bb3133c6ea7fdf7f1c4 (diff)
downloadserenity-58fda93ea2b75e89e9bf08c11829612e21b73c6a.zip
LibWeb: Add Blob to Fetch's Body::SourceType variant
Diffstat (limited to 'Userland/Libraries/LibWeb/Fetch/Infrastructure')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.h
index 9759daf49f..4665ba09e4 100644
--- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.h
+++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Bodies.h
@@ -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 { };