fetch: Align RequestInit's |headers| with the spec.
RequestInit::header is supposed to hold a HeadersInit (ie. just a WebIDL union) object, not a fully-fledged Headers one. Make it so, and add a HeadersInit overload to Headers::FillWith() so all the checks for which union type is being used are centralized in one place. Additionally, this also makes it easier to finally define RequestInit with an IDL file in the future. R=tyoshino@chromium.org,yhirano@chromium.org Review-Url: https://codereview.chromium.org/2840193002 Cr-Commit-Position: refs/heads/master@{#468309}
Showing
Please register or sign in to comment