servo/components/net_traits
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
..
image Add style check, test, and code fixes for an else brace check. 2016-07-04 18:38:13 -04:00
blob_url_store.rs Put Blob URL online 2016-07-15 20:33:51 +08:00
bluetooth_scanfilter.rs Use collect() for more idiomatic code in bluetooth. 2016-06-06 09:49:12 +02:00
bluetooth_thread.rs Refactor Bluetooth error handling 2016-07-27 15:02:01 +02:00
Cargo.toml Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
filemanager_thread.rs Add cancellability to file manager load and related refactoring 2016-08-02 23:51:51 +02:00
hosts.rs Deny unsafe code in some more modules. 2016-06-04 18:07:16 +02:00
image_cache_thread.rs Remove unnecessary 'unwrap' calls from ImageCacheThread 2016-07-13 09:38:55 +02:00
lib.rs Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
net_error_list.rs Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
request.rs Auto merge of #12700 - jeenalee:jeena-requestAPI, r=jdm 2016-08-12 23:54:49 -05:00
response.rs Update serde to 0.8 (fixes #12659) 2016-08-12 18:37:27 +02:00
storage_thread.rs send a reply when thread is done exiting 2016-05-30 09:21:09 -06:00