diff options
author | Linus Groh <mail@linusgroh.de> | 2022-07-18 08:09:11 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-18 08:11:25 +0100 |
commit | 58fda93ea2b75e89e9bf08c11829612e21b73c6a (patch) | |
tree | 63670b614126e896ddcce0008a7df9ee15e84127 /Userland/Libraries/LibWeb/Fetch/Infrastructure | |
parent | c50145342538ba98ccc78bb3133c6ea7fdf7f1c4 (diff) | |
download | serenity-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.h | 4 |
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 { }; |