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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://fetch.spec.whatwg.org/#request-class 5 // https://fetch.spec.whatwg.org/#request-class
6 6
7 typedef (Request or USVString) RequestInfo; 7 typedef (Request or USVString) RequestInfo;
8 8
9 enum RequestContext { 9 enum RequestContext {
10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav icon", 10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav icon",
(...skipping 29 matching lines...) Expand all
40 readonly attribute USVString url; 40 readonly attribute USVString url;
41 [ImplementedAs=getHeaders] readonly attribute Headers headers; 41 [ImplementedAs=getHeaders] readonly attribute Headers headers;
42 readonly attribute DOMString referrer; 42 readonly attribute DOMString referrer;
43 [ImplementedAs=getReferrerPolicy] readonly attribute ReferrerPolicy referrer Policy; 43 [ImplementedAs=getReferrerPolicy] readonly attribute ReferrerPolicy referrer Policy;
44 readonly attribute RequestMode mode; 44 readonly attribute RequestMode mode;
45 readonly attribute RequestCredentials credentials; 45 readonly attribute RequestCredentials credentials;
46 readonly attribute RequestRedirect redirect; 46 readonly attribute RequestRedirect redirect;
47 readonly attribute DOMString integrity; 47 readonly attribute DOMString integrity;
48 48
49 [RaisesException, CallWith=ScriptState] Request clone(); 49 [RaisesException, CallWith=ScriptState] Request clone();
50
51 // TODO(yhirano): Move this property (and Response.body) to Body mixin once this property is shipped.
52 [RuntimeEnabled=FetchStreamingUpload, CallWith=ScriptState, ImplementedAs=bo dyWithUseCounter] readonly attribute any body;
50 }; 53 };
51 54
52 Request implements Body; 55 Request implements Body;
OLDNEW
« 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