chromium/third_party/blink/renderer/core/fetch/worker_fetch.idl

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://fetch.spec.whatwg.org/#fetch-method

[
    ImplementedAs=GlobalFetch
] partial interface WorkerGlobalScope {
    [CallWith=ScriptState, NewObject, RaisesException] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
};