OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // http://fetch.spec.whatwg.org/#request-class | 5 // http://fetch.spec.whatwg.org/#request-class |
6 | 6 |
7 typedef (Request or USVString) RequestInfo; | 7 typedef (Request or USVString) RequestInfo; |
8 | 8 |
9 enum RequestContext { | 9 enum RequestContext { |
10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav
icon", | 10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav
icon", |
(...skipping 11 matching lines...) Expand all Loading... |
22 ConstructorCallWith=ScriptState, | 22 ConstructorCallWith=ScriptState, |
23 Exposed=(Window,Worker), | 23 Exposed=(Window,Worker), |
24 RaisesException=Constructor, | 24 RaisesException=Constructor, |
25 ActiveDOMObject, | 25 ActiveDOMObject, |
26 GarbageCollected, | 26 GarbageCollected, |
27 TypeChecking=Interface, | 27 TypeChecking=Interface, |
28 ] interface Request { | 28 ] interface Request { |
29 readonly attribute ByteString method; | 29 readonly attribute ByteString method; |
30 readonly attribute USVString url; | 30 readonly attribute USVString url; |
31 readonly attribute Headers headers; | 31 readonly attribute Headers headers; |
32 [DeprecateAs=FetchAPIRequestContext] readonly attribute RequestContext conte
xt; | |
33 readonly attribute DOMString referrer; | 32 readonly attribute DOMString referrer; |
34 readonly attribute RequestMode mode; | 33 readonly attribute RequestMode mode; |
35 readonly attribute RequestCredentials credentials; | 34 readonly attribute RequestCredentials credentials; |
36 readonly attribute RequestRedirect redirect; | 35 readonly attribute RequestRedirect redirect; |
37 | 36 |
38 [RaisesException] Request clone(); | 37 [RaisesException] Request clone(); |
39 }; | 38 }; |
40 | 39 |
41 Request implements Body; | 40 Request implements Body; |
OLD | NEW |