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:
parent
c501453425
commit
58fda93ea2
1 changed files with 3 additions and 1 deletions
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue