Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/ResponseInit.idl

Issue 2691513002: Fetch: Make Headers' constructor match the current spec IDL. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://fetch.spec.whatwg.org/#responseinit 5 // https://fetch.spec.whatwg.org/#responseinit
6 6
7 // The actual typedef in the spec is
8 // (sequence<sequence<ByteString>> or record<ByteString,ByteString>)
9 // which also implicitly includes Headers since it is iterable.
10 // Blink's WebIDL code does not support record<K,V> yet, so we have to make do
11 // with the (Dictionary or Headers) part instead.
12 // See http://crbug.com/685754.
13 typedef (sequence<sequence<ByteString>> or Dictionary or Headers) HeadersInit;
14
15 dictionary ResponseInit { 7 dictionary ResponseInit {
16 unsigned short status = 200; 8 unsigned short status = 200;
17 ByteString statusText = "OK"; 9 ByteString statusText = "OK";
18 HeadersInit headers; 10 HeadersInit headers;
19 }; 11 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698