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 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#re
quest-objects |
6 | 6 |
7 [ | 7 [ |
8 Constructor(optional Dictionary requestInitDict), | 8 Constructor(optional Dictionary requestInitDict), |
9 RuntimeEnabled=ServiceWorker, | 9 RuntimeEnabled=ServiceWorker, |
10 Exposed=ServiceWorker | 10 Exposed=ServiceWorker |
11 ] interface Request { | 11 ] interface Request { |
12 attribute DOMString url; | 12 attribute DOMString url; |
13 // FIXME: Spec uses ByteString for this. We must perform the DOMString -> By
teString conversion manually (crbug.com/347426). | 13 attribute ByteString method; |
14 attribute DOMString method; | |
15 readonly attribute DOMString origin; | 14 readonly attribute DOMString origin; |
16 readonly attribute HeaderMap headers; | 15 readonly attribute HeaderMap headers; |
17 | 16 |
18 // FIXME: Implement the following: | 17 // FIXME: Implement the following: |
19 // attribute unsigned long timeout; | 18 // attribute unsigned long timeout; |
20 // readonly attribute Mode mode; | 19 // readonly attribute Mode mode; |
21 // attribute boolean synchronous; | 20 // attribute boolean synchronous; |
22 // readonly attribute unsigned long redirectCount; | 21 // readonly attribute unsigned long redirectCount; |
23 // attribute boolean forcePreflight; | 22 // attribute boolean forcePreflight; |
24 // attribute boolean forceSameOrigin; | 23 // attribute boolean forceSameOrigin; |
25 // attribute boolean omitCredentials; | 24 // attribute boolean omitCredentials; |
26 // readonly attribute DOMString referrer; | 25 // readonly attribute DOMString referrer; |
27 // attribute any body; | 26 // attribute any body; |
28 }; | 27 }; |
OLD | NEW |