| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // http://fetch.spec.whatwg.org/#request-class | |
| 6 | |
| 7 typedef (Request or USVString) RequestInfo; | |
| 8 | |
| 9 enum RequestMode { "same-origin", "no-cors", "cors" }; | |
| 10 enum RequestCredentials { "omit", "same-origin", "include" }; | |
| 11 | |
| 12 [ | |
| 13 Constructor(RequestInfo input, optional Dictionary requestInitDict), | |
| 14 ConstructorCallWith=ExecutionContext, | |
| 15 Exposed(Window GlobalFetch, DedicatedWorker GlobalFetch, SharedWorker Global
Fetch, ServiceWorker ServiceWorker), | |
| 16 RaisesException=Constructor, | |
| 17 ActiveDOMObject, | |
| 18 GarbageCollected, | |
| 19 TypeChecking=Interface, | |
| 20 ] interface Request { | |
| 21 readonly attribute ByteString method; | |
| 22 readonly attribute USVString url; | |
| 23 readonly attribute Headers headers; | |
| 24 | |
| 25 readonly attribute DOMString referrer; | |
| 26 readonly attribute RequestMode mode; | |
| 27 readonly attribute RequestCredentials credentials; | |
| 28 | |
| 29 [RaisesException] Request clone(); | |
| 30 | |
| 31 // FIXME: Implement the following: | |
| 32 // readonly attribute RequestContext context; | |
| 33 }; | |
| 34 | |
| 35 Request implements Body; | |
| OLD | NEW |