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/#response-class |
| 6 // FIXME: Split this idl/impl into AbstractResponse and Response. |
| 7 [ |
| 8 // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView resp
onse bodies. |
| 9 Constructor(Blob body, optional Dictionary responseInitDict), |
| 10 RuntimeEnabled=ServiceWorker, |
| 11 Exposed=ServiceWorker |
| 12 ] interface Response { |
| 13 attribute unsigned short status; |
| 14 attribute ByteString statusText; |
| 15 readonly attribute HeaderMap headers; |
| 16 |
| 17 // FIXME: Implement the following: |
| 18 // attribute DOMString url; |
| 19 // Promise<Blob> toBlob(); |
| 20 }; |
OLD | NEW |