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