OLD | NEW |
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/#headers-class | 5 // https://fetch.spec.whatwg.org/#headers-class |
6 | 6 |
7 typedef Dictionary OpenEndedDictionary; | 7 typedef Dictionary OpenEndedDictionary; |
8 [ | 8 [ |
9 Constructor, | 9 Constructor, |
10 Constructor(Headers input), | 10 Constructor(Headers input), |
11 Constructor(OpenEndedDictionary input), | 11 Constructor(OpenEndedDictionary input), |
12 Constructor(sequence<sequence<ByteString>> input), | 12 Constructor(sequence<sequence<ByteString>> input), |
13 Exposed=(Window,Worker), | 13 Exposed=(Window,Worker), |
14 RaisesException=Constructor, | 14 RaisesException=Constructor, |
15 ] interface Headers { | 15 ] interface Headers { |
16 [RaisesException] void append(ByteString name, ByteString value); | 16 [RaisesException] void append(ByteString name, ByteString value); |
17 [ImplementedAs=remove, RaisesException] void delete(ByteString key); | 17 [ImplementedAs=remove, RaisesException] void delete(ByteString key); |
18 [RaisesException] ByteString? get(ByteString key); | 18 [RaisesException] ByteString? get(ByteString key); |
19 [RaisesException] sequence<ByteString> getAll(ByteString name); | 19 [RaisesException, Measure] sequence<ByteString> getAll(ByteString name); |
20 [RaisesException] boolean has(ByteString key); | 20 [RaisesException] boolean has(ByteString key); |
21 [RaisesException] void set(ByteString key, ByteString value); | 21 [RaisesException] void set(ByteString key, ByteString value); |
22 iterable<ByteString, ByteString>; | 22 iterable<ByteString, ByteString>; |
23 }; | 23 }; |
OLD | NEW |