servo/tests
bors-servo 78160bf3f9 Auto merge of #12700 - jeenalee:jeena-requestAPI, r=jdm
Implement the Request API

<!-- Please describe your changes on the following line: -->
This PR implements the [Request API](https://fetch.spec.whatwg.org/#request-class) for the Fetch API, including its attributes and constructor, and introduces changes in relevant files.

This Request integrates `net_traits::request::Request` and `dom::headers`.

There are few related TODOs and comments:
1. `net_traits::request::Request`'s `headers` field does not point to `dom::request::Request`'s `headers_reflector`.
2. Every Constructor step that involves `Readable Stream` object is not implemented.
3. Every Constructor step that involves `entry settings object` or `environment settings object` is not implemented.
4. `./mach build -d` does not report any error, but prints a few warnings about unused variables related to (1) and (2).
5. Enum `ReferrerPolicy` generated by `RequestBinding` does not match `net_traits::request::Request`'s implementation.
6. `Promise`s in Body webidl are commented out.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11895 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests  because tests for the Request API already exists, but this commit does not implement the interface fully.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12700)
<!-- Reviewable:end -->
2016-08-12 23:54:49 -05:00
..
compiletest All our Cargo.toml files should contain an MPL-2.0 license field. 2016-07-14 10:26:34 -05:00
dromaeo Avoid Python's HTTP server automatic redirect that appends / after the query string. Fixes #11843. 2016-06-23 18:49:19 -04:00
heartbeats Profile time spent saving the screenshot image 2016-05-09 09:43:13 -07:00
html Issue #12421: tidy should also check .html files 2016-08-09 22:04:57 +02:00
jquery Update expected results for the jquery tests. 2016-03-16 14:48:10 +01:00
power
unit Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
wpt Auto merge of #12700 - jeenalee:jeena-requestAPI, r=jdm 2016-08-12 23:54:49 -05:00