impl Body mixin for dom::Response and dom::Request

This commit is contained in:
Malisa Smith 2016-09-08 15:50:22 -07:00 committed by Keith Yeung
parent 6a0c70a222
commit a5e5cd0e9e
18 changed files with 332 additions and 167 deletions

View file

@ -4,8 +4,7 @@
// https://fetch.spec.whatwg.org/#response-class
// TODO: pass 'optional ResponseBodyInit? body = null' to constructor in place of USVString
[Constructor(optional USVString? body = null, optional ResponseInit init),
[Constructor(optional BodyInit? body = null, optional ResponseInit init),
Exposed=(Window,Worker)]
interface Response {
[NewObject] static Response error();