mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
parent
4fe0cbcf85
commit
08e4cf1f3b
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/jamierocks
Commit: 08e4cf1f3b
Pull-request: https://github.com/SerenityOS/serenity/pull/24379
Reviewed-by: https://github.com/shannonbooth
3 changed files with 22 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -16,6 +17,7 @@ namespace Web::Fetch {
|
|||
enum class PackageDataType {
|
||||
ArrayBuffer,
|
||||
Blob,
|
||||
Uint8Array,
|
||||
FormData,
|
||||
JSON,
|
||||
Text,
|
||||
|
@ -39,6 +41,7 @@ public:
|
|||
// JS API functions
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> array_buffer() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> blob() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> bytes() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> form_data() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> json() const;
|
||||
[[nodiscard]] WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> text() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue