| Index: Source/modules/serviceworkers/Response.idl
|
| diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Response.idl
|
| index fb8ecf3436918dddc2bce85145b54cf91052b59a..518c65ce2fe9b4ed993034556fe911c57d656eb1 100644
|
| --- a/Source/modules/serviceworkers/Response.idl
|
| +++ b/Source/modules/serviceworkers/Response.idl
|
| @@ -3,18 +3,22 @@
|
| // found in the LICENSE file.
|
|
|
| // http://fetch.spec.whatwg.org/#response-class
|
| -// FIXME: Split this idl/impl into AbstractResponse and Response.
|
| +
|
| +enum ResponseType { "basic", "cors", "default", "error", "opaque" };
|
| +
|
| [
|
| - // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView response bodies.
|
| + // FIXME: Add ctors for ArrayBuffer, ArrayBufferView, FormData,
|
| + // ScalarValueString and URLSearchParams response bodies.
|
| Constructor(Blob body, optional Dictionary responseInitDict),
|
| RuntimeEnabled=ServiceWorker,
|
| - Exposed=ServiceWorker
|
| + Exposed=ServiceWorker,
|
| + RaisesException=Constructor
|
| ] interface Response {
|
| - attribute unsigned short status;
|
| - attribute ByteString statusText;
|
| - readonly attribute HeaderMap headers;
|
| -
|
| - // FIXME: Implement the following:
|
| - // attribute DOMString url;
|
| - // Promise<Blob> toBlob();
|
| + // FIXME: Implement redirect().
|
| + readonly attribute ResponseType type;
|
| + readonly attribute ScalarValueString url;
|
| + readonly attribute unsigned short status;
|
| + readonly attribute ByteString statusText;
|
| + readonly attribute Headers headers;
|
| + // FIXME: Implement FetchBodyStream body;
|
| };
|
|
|