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

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

Issue 2591723003: [Fetch API] Remove Headers.prototype.getAll() (Closed)
Patch Set: Update get. Created 3 years, 7 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/Headers.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/#typedefdef-headersinit 5 // https://fetch.spec.whatwg.org/#typedefdef-headersinit
6 6
7 // The actual typedef in the spec is 7 // The actual typedef in the spec is
8 // (sequence<sequence<ByteString>> or record<ByteString,ByteString>) 8 // (sequence<sequence<ByteString>> or record<ByteString,ByteString>)
9 // which also implicitly includes Headers since it is iterable. 9 // which also implicitly includes Headers since it is iterable.
10 // See http://crbug.com/690428. 10 // See http://crbug.com/690428.
11 typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString> or Hea ders) HeadersInit; 11 typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString> or Hea ders) HeadersInit;
12 12
13 // https://fetch.spec.whatwg.org/#headers-class 13 // https://fetch.spec.whatwg.org/#headers-class
14 14
15 [ 15 [
16 Constructor(optional HeadersInit init), 16 Constructor(optional HeadersInit init),
17 Exposed=(Window,Worker), 17 Exposed=(Window,Worker),
18 RaisesException=Constructor, 18 RaisesException=Constructor,
19 ] interface Headers { 19 ] interface Headers {
20 [RaisesException] void append(ByteString name, ByteString value); 20 [RaisesException] void append(ByteString name, ByteString value);
21 [ImplementedAs=remove, RaisesException] void delete(ByteString key); 21 [ImplementedAs=remove, RaisesException] void delete(ByteString key);
22 [RaisesException] ByteString? get(ByteString key); 22 [RaisesException] ByteString? get(ByteString key);
23 [RaisesException, Measure] sequence<ByteString> getAll(ByteString name);
24 [RaisesException] boolean has(ByteString key); 23 [RaisesException] boolean has(ByteString key);
25 [RaisesException] void set(ByteString key, ByteString value); 24 [RaisesException] void set(ByteString key, ByteString value);
26 iterable<ByteString, ByteString>; 25 iterable<ByteString, ByteString>;
27 }; 26 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Headers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698