aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Fetch.webidl
diff options
context:
space:
mode:
authorJeena Lee <ijeenalee@gmail.com>2016-09-06 10:54:06 -0700
committerJeena Lee <ijeenalee@gmail.com>2016-09-29 08:19:41 -0700
commit3216009731664d5099049267bca7a79e6af22196 (patch)
treef31a83d63aaa1b6208120c0cc2fe31753a7c32f7 /components/script/dom/webidls/Fetch.webidl
parenta03a5e814a7003ba9697aa37d7492cf9e6425ea4 (diff)
downloadservo-3216009731664d5099049267bca7a79e6af22196.tar.gz
servo-3216009731664d5099049267bca7a79e6af22196.zip
Implement the Fetch method
Diffstat (limited to 'components/script/dom/webidls/Fetch.webidl')
-rw-r--r--components/script/dom/webidls/Fetch.webidl11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/webidls/Fetch.webidl b/components/script/dom/webidls/Fetch.webidl
new file mode 100644
index 00000000000..fe062994598
--- /dev/null
+++ b/components/script/dom/webidls/Fetch.webidl
@@ -0,0 +1,11 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// https://fetch.spec.whatwg.org/#fetch-method
+
+[Exposed=(Window,Worker)]
+
+partial interface WindowOrWorkerGlobalScope {
+ [NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init);
+};