// 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 Window { | |
[CallWith=ScriptState, NewObject, RaisesException] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {}); | |
}; |