mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibWeb: Add Blob to Fetch's Body::SourceType variant
This commit is contained in:
parent
c501453425
commit
58fda93ea2
Notes:
sideshowbarker
2024-07-17 08:51:26 +09:00
Author: https://github.com/linusg
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