Descriptionfetch: 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}
Committed: https://chromium.googlesource.com/chromium/src/+/51b208180cdd9881d699b7d28273d7addbce69fb
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add HeadersInit typedef #
Total comments: 2
Patch Set 3 : Use using, not typedef #
Dependent Patchsets: Messages
Total messages: 17 (10 generated)
|