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 [ | 5 [ |
6 Constructor(optional Dictionary responseInitDict), | 6 Constructor(optional Dictionary responseInitDict), |
7 RuntimeEnabled=ServiceWorker, | 7 RuntimeEnabled=ServiceWorker, |
8 GlobalContext=ServiceWorkerGlobalScope, | 8 Exposed=ServiceWorker |
9 ] interface Response { | 9 ] interface Response { |
10 attribute unsigned short statusCode; | 10 attribute unsigned short statusCode; |
11 | 11 |
12 // FIXME: Spec uses ByteString for these. We must perform the DOMString -> B
yteString conversion manually (crbug.com/347426). | 12 // FIXME: Spec uses ByteString for these. We must perform the DOMString -> B
yteString conversion manually (crbug.com/347426). |
13 attribute DOMString statusText; | 13 attribute DOMString statusText; |
14 attribute DOMString method; | 14 attribute DOMString method; |
15 | 15 |
16 // FIXME: Implement HeaderMap which uses the MapClass WebIDL attribute (crbu
g.com/347435). | 16 // FIXME: Implement HeaderMap which uses the MapClass WebIDL attribute (crbu
g.com/347435). |
17 getter Dictionary headers(); | 17 getter Dictionary headers(); |
18 setter void headers(Dictionary items); | 18 setter void headers(Dictionary items); |
19 | 19 |
20 // FIXME: Implement the following: | 20 // FIXME: Implement the following: |
21 // attribute DOMString url; | 21 // attribute DOMString url; |
22 // Promise<Blob> toBlob(); | 22 // Promise<Blob> toBlob(); |
23 }; | 23 }; |
OLD | NEW |