Malisa Smith
914985a7b7
servo: Merge #13058 - Response API (from malisas:malisa-responseAPI); r=Manishearth,jdm
...
<!-- Please describe your changes on the following line: -->
This PR adds the [dom::Response](https://fetch.spec.whatwg.org/#response-class ) implementation and addresses #11896 .
The relevant passing tests` expectations have been updated.
In order to allow non-UTF-8-encoded status messages, `net_traits::response::Response`'s `raw_status` field has been changed from type [`Option<RawStatus>`](https://doc.servo.org/hyper/http/struct.RawStatus.html ) to type `Option<(u16, Vec<u8>)>`. As a result, a few other files which rely on the `raw_status` field were affected and updated.
TODOs:
- The `body` and `trailer` methods. Relies on implementation of `ReadableStream` and `Promise`s.
- Similarly, replace the dummy constructor `_body: Option<USVString>` argument with `body: ResponseBodyInit`.
- Currently, whenever `r's response's header list` or `r's Headers object` are mentioned, I always modify the `headers_reflector` field (of type dom::Headers, or `r's Headers object`) and not the corresponding hyper::Headers list in the net_traits::Response field. A completely accurate interpretation of the spec might consider making both of these lists the same thing via a reference. [Discussion](https://github.com/whatwg/fetch/issues/358 ) was [had](https://github.com/servo/servo/pull/12884 ).
---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Source-Repo: https://github.com/servo/servo
Source-Revision: 5a5a76cc5db830d2e622d4e0924837383b64dfa2
2016-09-08 18:58:05 -05:00
..
2016-09-08 18:58:05 -05:00
2016-06-25 15:16:48 -05:00
2016-09-08 18:58:05 -05:00
2016-09-06 12:35:39 -05:00
2016-06-02 06:18:59 -05:00
2016-07-08 05:06:57 -07:00
2016-08-31 16:30:56 -05:00
2016-05-24 02:07:29 -07:00
2016-08-22 03:09:28 -05:00
2016-07-28 03:33:08 -05:00
2016-05-04 08:06:06 -07:00
2016-03-16 20:31:18 +05:00
2016-05-27 18:14:25 -05:00
2016-07-28 03:33:08 -05:00
2016-07-28 03:33:08 -05:00
2016-07-28 03:33:08 -05:00
2016-07-28 03:33:08 -05:00
2016-05-27 18:14:25 -05:00
2016-09-07 04:17:36 -05:00
2016-05-24 02:07:29 -07:00
2015-12-18 03:56:59 +05:00
2016-08-31 04:10:42 -05:00
2016-08-31 16:30:56 -05:00
2016-06-02 06:18:59 -05:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-08-31 04:10:42 -05:00
2016-05-24 02:07:29 -07:00
2016-08-31 16:30:56 -05:00
2016-05-24 02:07:29 -07:00
2016-08-29 05:00:39 -05:00
2016-08-31 16:30:56 -05:00
2016-05-24 02:07:29 -07:00
2016-07-14 01:30:22 -07:00
2016-05-24 02:07:29 -07:00
2016-07-15 11:25:43 -07:00
2016-07-15 11:25:43 -07:00
2015-12-18 23:07:12 +05:00
2015-11-18 15:14:30 +05:00
2016-05-27 18:14:25 -05:00
2015-11-18 15:14:30 +05:00
2016-08-31 04:10:42 -05:00
2015-11-18 15:14:30 +05:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-09-06 01:48:04 -05:00
2016-07-04 11:03:35 -07:00
2016-08-24 07:17:22 -05:00
2016-08-24 07:17:22 -05:00
2016-05-24 02:07:29 -07:00
2016-09-02 04:45:37 -05:00
2016-07-22 01:09:58 -05:00
2016-08-31 04:10:42 -05:00
2016-07-14 10:55:17 -07:00
2016-07-31 03:50:37 -05:00
2016-05-24 02:07:29 -07:00
2016-05-27 18:14:25 -05:00
2016-08-10 06:40:16 -05:00
2016-05-24 02:07:29 -07:00
2016-09-08 18:58:05 -05:00
2016-08-03 22:22:57 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-08-25 12:48:06 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 10:55:17 -07:00
2016-08-25 08:43:23 -05:00
2016-07-14 01:30:22 -07:00
2016-07-10 08:18:27 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-08-28 10:43:29 -05:00
2016-08-23 02:31:48 -05:00
2016-08-02 16:57:46 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-28 20:42:13 -05:00
2016-09-08 18:58:05 -05:00
2016-07-14 01:30:22 -07:00
2016-09-08 18:58:05 -05:00
2016-08-31 16:30:56 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-08-30 13:18:10 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-09-08 18:58:05 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-20 02:58:34 -05:00
2016-07-14 01:30:22 -07:00
2016-06-07 11:09:14 -05:00
2016-07-14 01:30:22 -07:00
2016-05-24 02:07:29 -07:00
2016-07-27 11:29:21 -05:00
2016-07-14 01:30:22 -07:00
2016-06-07 11:09:14 -05:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-07-14 01:30:22 -07:00
2016-08-31 04:10:42 -05:00
2016-07-06 02:51:50 -07:00
2016-06-29 17:39:58 -05:00
2016-07-28 20:42:13 -05:00
2016-05-03 16:42:46 -07:00
2016-07-04 11:03:35 -07:00
2016-05-27 07:11:17 -05:00
2016-08-31 04:10:42 -05:00
2016-09-08 18:58:05 -05:00
2016-07-03 08:19:04 -07:00
2016-08-31 04:10:42 -05:00
2016-09-01 05:25:52 -05:00
2016-05-24 02:07:29 -07:00
2016-09-01 02:44:36 -05:00
2016-05-27 18:14:25 -05:00
2016-08-31 04:10:42 -05:00
2016-05-24 02:07:29 -07:00
2016-06-01 07:36:47 -05:00
2016-05-27 18:14:25 -05:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-08-31 04:10:42 -05:00
2016-07-04 11:03:35 -07:00
2016-08-13 15:26:15 -05:00
2016-09-08 18:58:05 -05:00
2015-11-04 02:26:02 +05:00
2016-09-06 12:35:39 -05:00
2016-08-04 01:25:23 -05:00
2016-08-29 05:00:39 -05:00
2016-07-18 09:50:59 -07:00
2016-08-12 12:23:10 -05:00
2016-04-27 07:50:54 -07:00
2016-08-31 04:10:42 -05:00
2016-05-27 07:11:17 -05:00
2016-05-27 07:11:17 -05:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-08-31 04:10:42 -05:00
2016-08-24 12:47:53 -05:00
2016-08-31 04:10:42 -05:00
2016-05-27 07:11:17 -05:00
2016-05-24 02:07:29 -07:00
2016-08-31 04:10:42 -05:00
2015-11-04 02:26:02 +05:00
2016-05-24 02:07:29 -07:00
2016-08-31 04:10:42 -05:00
2015-11-04 10:33:54 +05:00
2016-06-04 20:25:36 -05:00
2016-08-22 03:09:28 -05:00
2016-04-23 11:28:31 -07:00
2016-05-24 02:07:29 -07:00
2016-07-21 04:08:49 -05:00
2016-03-24 18:43:02 +05:00
2016-05-27 18:14:25 -05:00
2015-10-10 15:00:39 -06:00
2016-07-28 20:42:13 -05:00
2016-05-24 02:07:29 -07:00
2016-06-28 13:13:44 -05:00
2016-05-24 02:07:29 -07:00
2016-06-28 13:13:44 -05:00
2015-11-04 02:26:02 +05:00
2016-08-28 21:23:59 -05:00
2016-06-28 13:13:44 -05:00
2016-08-31 04:10:42 -05:00
2016-06-28 13:13:44 -05:00
2015-11-04 02:26:02 +05:00
2016-06-28 13:13:44 -05:00
2016-06-28 13:13:44 -05:00
2016-07-23 15:22:57 -05:00
2016-09-02 04:45:37 -05:00
2016-09-06 12:35:39 -05:00
2016-09-02 04:45:37 -05:00
2016-05-24 02:07:29 -07:00
2016-05-24 02:07:29 -07:00
2016-08-31 04:10:42 -05:00
2016-09-08 18:58:05 -05:00
2015-10-21 07:57:32 -06:00
2015-11-04 02:26:02 +05:00