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 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re
quest-objects | 5 // http://fetch.spec.whatwg.org/#request-class |
6 | |
7 [ | 6 [ |
8 Constructor(optional Dictionary requestInitDict), | 7 Constructor(optional Dictionary requestInitDict), |
9 RuntimeEnabled=ServiceWorker, | 8 RuntimeEnabled=ServiceWorker, |
10 Exposed=ServiceWorker | 9 Exposed=ServiceWorker |
11 ] interface Request { | 10 ] interface Request { |
12 attribute DOMString url; | 11 attribute ScalarValueString url; |
13 attribute ByteString method; | 12 attribute ByteString method; |
14 readonly attribute DOMString origin; | 13 readonly attribute DOMString origin; |
15 readonly attribute HeaderMap headers; | 14 readonly attribute HeaderMap headers; |
16 | 15 |
17 // FIXME: Implement the following: | 16 // FIXME: Implement the following: |
18 // attribute unsigned long timeout; | 17 // attribute unsigned long timeout; |
19 // readonly attribute Mode mode; | 18 // readonly attribute Mode mode; |
20 // attribute boolean synchronous; | 19 // attribute boolean synchronous; |
21 // readonly attribute unsigned long redirectCount; | 20 // readonly attribute unsigned long redirectCount; |
22 // attribute boolean forcePreflight; | 21 // attribute boolean forcePreflight; |
23 // attribute boolean forceSameOrigin; | 22 // attribute boolean forceSameOrigin; |
24 // attribute boolean omitCredentials; | 23 // attribute boolean omitCredentials; |
25 // readonly attribute DOMString referrer; | 24 // readonly attribute DOMString referrer; |
26 // attribute any body; | 25 // attribute any body; |
27 }; | 26 }; |
OLD | NEW |