mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
This commit adds new files related to implementing the [Request API](https://fetch.spec.whatwg.org/#request-class). This commit also changes the expected web platform tests results. It also modifies the following files: components/net_traits/request.rs HeapSizeOf is implemented in net_traits/request so that dom::request can be used as a wrapper around net_traits::request::Request. components/script/dom/headers.rs Several methods are added to Headers so that request can access and modify some of the headers fields.
19 lines
627 B
Text
19 lines
627 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://fetch.spec.whatwg.org/#body
|
|
|
|
[NoInterfaceObject,
|
|
Exposed=(Window,Worker)]
|
|
|
|
interface Body {
|
|
readonly attribute boolean bodyUsed;
|
|
|
|
// Servo does not support Promise at this moment.
|
|
// [NewObject] Promise<ArrayBuffer> arrayBuffer();
|
|
// [NewObject] Promise<Blob> blob();
|
|
// [NewObject] Promise<FormData> formData();
|
|
// [NewObject] Promise<JSON> json();
|
|
// [NewObject] Promise<USVString> text();
|
|
};
|