| Index: modules/fetch/Response.idl
|
| diff --git a/modules/fetch/Response.idl b/modules/fetch/Response.idl
|
| index 5deaa680f4f3581a332d87b9d1cd9fb41f05f978..cd8a275e7e88674b174419930126c1e34b5af5e4 100644
|
| --- a/modules/fetch/Response.idl
|
| +++ b/modules/fetch/Response.idl
|
| @@ -4,19 +4,17 @@
|
|
|
| // http://fetch.spec.whatwg.org/#response-class
|
|
|
| -enum ResponseType { "basic", "cors", "default", "error", "opaque" };
|
| -
|
| -// FIXME: Add union type: URLSearchParams
|
| -typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyInit;
|
| +enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" };
|
|
|
| [
|
| - Constructor(optional BodyInit body, optional Dictionary responseInitDict),
|
| - ConstructorCallWith=ExecutionContext,
|
| + // TODO(yhirano): We use "any" for body because the IDL processor doesn't
|
| + // recognize ReadableStream implemented with V8 extras. Fix it.
|
| + Constructor(optional any body, optional Dictionary responseInitDict),
|
| + ConstructorCallWith=ScriptState,
|
| Exposed=(Window,Worker),
|
| RaisesException=Constructor,
|
| - ActiveDOMObject,
|
| + DependentLifetime,
|
| GarbageCollected,
|
| - TypeChecking=Interface,
|
| ] interface Response {
|
| [CallWith=ExecutionContext] static Response error();
|
| [CallWith=ExecutionContext, RaisesException] static Response redirect(USVString url, optional unsigned short status = 302);
|
| @@ -29,7 +27,7 @@ typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyIn
|
|
|
| [RaisesException] Response clone();
|
|
|
| - readonly attribute ReadableByteStream body;
|
| + [ImplementedAs=bodyWithUseCounter] readonly attribute ReadableByteStream body;
|
| };
|
|
|
| Response implements Body;
|
|
|