servo/components
bors-servo 1ce4be8f6d Auto merge of #12634 - malisas:malisa-headersAPI, r=jdm
Headers API constructor and methods

<!-- Please describe your changes on the following line: -->
This PR fills out the constructor and the delete, get, has, and set methods for the Headers API. Addresses issue #11897 .

The PR also rewrites the append method to support `hyper::header::Headers`'s HashMap `insert` method, which overwrites entries instead of appending.
As a result of this, for a given header name there is at most one value in the inner "header list"/HashMap. Multiple values for the same name are comma-delimited.

There are still a few TODOs:
- Support `OpenEndedDictionary<ByteString>`  as a possible `HeadersInit` value. [OpenEndedDictionary<T> is a future IDL construct.](https://fetch.spec.whatwg.org/#headers-class)
- Support `iterable<ByteString, ByteString>`. Related issue: #12628
- Values are comma-delimited, except for values with the name `set-cookie`, which are newline-delimited. This is because values for `set-cookie` are [allowed to contain](https://tools.ietf.org/html/rfc7230#section-3.2.2) inner commas. This violates the [spec](https://fetch.spec.whatwg.org/#concept-header-value-combined).
- The TODOs from PR #12467 regarding value parsing also still need to be resolved.

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because tests for the Headers API already exists, but this commit does not implement the interface fully. The tests will fail.

<!-- 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/12634)
<!-- Reviewable:end -->
2016-07-30 12:36:49 -05:00
..
canvas Remove dependency on util::opts from canvas crate 2016-07-20 07:38:18 +00:00
canvas_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
compositing Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwalton 2016-07-27 17:56:26 -05:00
constellation Auto merge of #12637 - asajeffrey:constellation-use-reentrant-logging-mutex, r=emilio 2016-07-29 12:49:08 -05:00
devtools Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
devtools_traits Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
gfx Auto merge of #11850 - splav:box-shadow#11662, r=glennw 2016-07-27 18:54:32 -05:00
gfx_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
layout Auto merge of #12642 - notriddle:textarea_height, r=asajeffrey 2016-07-29 13:53:13 -05:00
layout_thread Auto merge of #12615 - nox:die-opts-die, r=Ms2ger 2016-07-27 22:36:53 -05:00
layout_traits Hoist retrieval of layout_threads from opts into Constellation 2016-07-24 21:45:31 +02:00
msg Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
net Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
net_traits Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
plugins Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
profile Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
profile_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
range Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
script Auto merge of #12634 - malisas:malisa-headersAPI, r=jdm 2016-07-30 12:36:49 -05:00
script_layout_interface Hoist retrieval of layout_threads from opts into Constellation 2016-07-24 21:45:31 +02:00
script_traits Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwalton 2016-07-27 17:56:26 -05:00
servo Auto merge of #12186 - GuillaumeGomez:video-metadata, r=larsbergstrom,jdm,KiChjang 2016-07-29 17:46:42 -05:00
style style: Split values.rs into specified/computed module files 2016-07-29 18:43:42 +05:30
style_traits All our Cargo.toml files should contain an MPL-2.0 license field. 2016-07-14 10:26:34 -05:00
util Replaced mutex in constellation logging by a reentrant mutex. 2016-07-29 09:44:45 -05:00
webdriver_server Auto merge of #11791 - craftytrickster:11712/pipeline-lookup, r=asajeffrey 2016-07-26 00:44:28 -05:00