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>
|
|
|
|
#include <LibJS/Forward.h>
|
|
|
|
#include <LibJS/Heap/GCPtr.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 {
|
|
|
|
|
2023-03-07 18:15:52 +00:00
|
|
|
JS::NonnullGCPtr<JS::Promise> fetch(JS::VM&, RequestInfo const& input, RequestInit const& init = {});
|
2023-02-28 17:45:49 +00:00
|
|
|
void abort_fetch(JS::Realm&, WebIDL::Promise const&, JS::NonnullGCPtr<Infrastructure::Request>, JS::GCPtr<Response>, JS::Value error);
|
2022-10-23 22:20:25 +01:00
|
|
|
|
|
|
|
}
|