2022-10-23 22:20:25 +01:00
|
|
|
/*
|
2023-03-07 18:15:52 +00:00
|
|
|
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
2022-10-23 22:20:25 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
2024-11-15 04:01:23 +13:00
|
|
|
#include <LibGC/Ptr.h>
|
2022-10-23 22:20:25 +01:00
|
|
|
#include <LibJS/Forward.h>
|
|
|
|
#include <LibWeb/Fetch/Request.h>
|
2023-02-13 11:58:39 +01:00
|
|
|
#include <LibWeb/WebIDL/Promise.h>
|
2022-10-23 22:20:25 +01:00
|
|
|
|
|
|
|
namespace Web::Fetch {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<WebIDL::Promise> fetch(JS::VM&, RequestInfo const& input, RequestInit const& init = {});
|
|
|
|
void abort_fetch(JS::Realm&, WebIDL::Promise const&, GC::Ref<Infrastructure::Request>, GC::Ptr<Response>, JS::Value error);
|
2022-10-23 22:20:25 +01:00
|
|
|
|
|
|
|
}
|