Index: Source/modules/serviceworkers/Body.idl |
diff --git a/Source/modules/serviceworkers/FetchBodyStream.idl b/Source/modules/serviceworkers/Body.idl |
similarity index 50% |
rename from Source/modules/serviceworkers/FetchBodyStream.idl |
rename to Source/modules/serviceworkers/Body.idl |
index 5e5bf66364f0996466af1439635dcee15ab674ca..bb065791d04e55f218b92ad03f7326e013e3e5db 100644 |
--- a/Source/modules/serviceworkers/FetchBodyStream.idl |
+++ b/Source/modules/serviceworkers/Body.idl |
@@ -2,20 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// http://fetch.spec.whatwg.org/#fetchbodystream |
+// http://fetch.spec.whatwg.org/#body |
[ |
RuntimeEnabled=ServiceWorker, |
Exposed=ServiceWorker, |
NoInterfaceObject, |
ActiveDOMObject, |
GarbageCollected, |
-] interface FetchBodyStream { |
- [CallWith=ScriptState] Promise asArrayBuffer(); |
- [CallWith=ScriptState] Promise asBlob(); |
- [CallWith=ScriptState] Promise asJSON(); |
- [CallWith=ScriptState] Promise asText(); |
+] interface Body { |
+ readonly attribute boolean bodyUsed; |
+ [CallWith=ScriptState] Promise arrayBuffer(); |
+ [CallWith=ScriptState] Promise blob(); |
+ [CallWith=ScriptState] Promise json(); |
+ [CallWith=ScriptState] Promise text(); |
// Still to be implemented. |
- // [CallWith=ScriptState] Promise asFormData(); |
+ // [CallWith=ScriptState] Promise formData(); |
}; |
- |