DescriptionFetch: Make Headers' constructor match the current spec IDL.
Instead of specifying several different constructors in the IDL (including
an overload for the defunct OpenEndedDictionary type), make Headers.idl
match the Fetch spec and just declare a single constructor that optionally
takes a HeadersInit type, which has also been modified to take a
record<ByteString,ByteString> instead of a Dictionary now that we support
records in the WebIDL compiler.
By using HeadersInit, which we define in the same IDL, we can get rid of
RequestInit::headers_dictionary altogether and leave most of the V8-Impl
type conversions to the auto-generated bindings code. Consequently, this
also lets us remove several Header::Create() overloads.
BUG=707365
R=tyoshino@chromium.org,yhirano@chromium.org
Review-Url: https://codereview.chromium.org/2691513002
Cr-Commit-Position: refs/heads/master@{#463623}
Committed: https://chromium.googlesource.com/chromium/src/+/07c092298a6243fc2c829e517cf2b19f4caea26c
Patch Set 1 #
Total comments: 1
Patch Set 2 : Patch v2 #
Total comments: 2
Patch Set 3 : Rebase and use records in HeadersInit #Patch Set 4 : Reference Fetch issue 479 #Patch Set 5 : Rebase after the Blink Rename #
Total comments: 4
Patch Set 6 : Remove unnecessary includes #Patch Set 7 : Rebase again #Messages
Total messages: 35 (20 generated)
|