| Index: modules/serviceworkers/Response.idl
|
| diff --git a/modules/serviceworkers/Response.idl b/modules/serviceworkers/Response.idl
|
| index fb8ecf3436918dddc2bce85145b54cf91052b59a..28df198dc66a269e2fc19552e23669ed42e41ebf 100644
|
| --- a/modules/serviceworkers/Response.idl
|
| +++ b/modules/serviceworkers/Response.idl
|
| @@ -3,18 +3,24 @@
|
| // 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.
|
| - Constructor(Blob body, optional Dictionary responseInitDict),
|
| + // FIXME: Add ctors for ArrayBuffer, ArrayBufferView, FormData,
|
| + // and URLSearchParams response bodies.
|
| + Constructor(ScalarValueString body, optional Dictionary responseInitDict),
|
| + Constructor(Blob? body, optional Dictionary responseInitDict),
|
| RuntimeEnabled=ServiceWorker,
|
| - Exposed=ServiceWorker
|
| + Exposed=ServiceWorker,
|
| + RaisesException=Constructor,
|
| + WillBeGarbageCollected,
|
| ] 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;
|
| + [CallWith=ExecutionContext] readonly attribute FetchBodyStream body;
|
| };
|
|
|