mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb/HTML: Port Window.fetch() to IDL
This commit is contained in:
parent
a2fb3a1653
commit
5cc6b1c4db
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/linusg
Commit: 5cc6b1c4db
Pull-request: https://github.com/SerenityOS/serenity/pull/17752
Reviewed-by: https://github.com/awesomekling
12 changed files with 22 additions and 389 deletions
|
@ -1,3 +1,6 @@
|
|||
#import <Fetch/Request.idl>
|
||||
#import <Fetch/Response.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
|
||||
interface mixin WindowOrWorkerGlobalScope {
|
||||
[Replaceable] readonly attribute USVString origin;
|
||||
|
@ -25,4 +28,7 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||
|
||||
// structured cloning
|
||||
// FIXME: any structuredClone(any value, optional StructuredSerializeOptions options = {});
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-method
|
||||
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue