mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
feat(webidl): expose arraybuffer overload in body idl
This commit is contained in:
parent
72f326b22b
commit
c0b5eeef57
4 changed files with 15 additions and 2 deletions
|
@ -611,6 +611,12 @@ impl RequestMethods for Request {
|
|||
fn Json(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::Json)
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
||||
fn ArrayBuffer(&self) -> Rc<Promise> {
|
||||
consume_body(self, BodyType::ArrayBuffer)
|
||||
}
|
||||
}
|
||||
|
||||
impl BodyOperations for Request {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue