mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
impl Body mixin for dom::Response and dom::Request
This commit is contained in:
parent
6a0c70a222
commit
a5e5cd0e9e
18 changed files with 332 additions and 167 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue