diff options
author | Jeena Lee <ijeenalee@gmail.com> | 2016-09-06 10:54:06 -0700 |
---|---|---|
committer | Jeena Lee <ijeenalee@gmail.com> | 2016-09-29 08:19:41 -0700 |
commit | 3216009731664d5099049267bca7a79e6af22196 (patch) | |
tree | f31a83d63aaa1b6208120c0cc2fe31753a7c32f7 /components/script/dom/webidls/Fetch.webidl | |
parent | a03a5e814a7003ba9697aa37d7492cf9e6425ea4 (diff) | |
download | servo-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.webidl | 11 |
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); +}; |