Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.idl

Issue 2679563002: [WIP] Expose Request.body property
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/Request.idl
diff --git a/third_party/WebKit/Source/modules/fetch/Request.idl b/third_party/WebKit/Source/modules/fetch/Request.idl
index 07673b0f02d6a7cb4b931258e29395a0547f6cb1..31efc74cc7c8653229b4e12259cef2ec13b96d8d 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.idl
+++ b/third_party/WebKit/Source/modules/fetch/Request.idl
@@ -47,6 +47,9 @@ enum ReferrerPolicy {
readonly attribute DOMString integrity;
[RaisesException, CallWith=ScriptState] Request clone();
+
+ // TODO(yhirano): Move this property (and Response.body) to Body mixin once this property is shipped.
+ [RuntimeEnabled=FetchStreamingUpload, CallWith=ScriptState, ImplementedAs=bodyWithUseCounter] readonly attribute any body;
};
Request implements Body;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.cpp ('k') | third_party/WebKit/Source/modules/fetch/RequestInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698