| Index: Source/modules/serviceworkers/Headers.idl
|
| diff --git a/Source/modules/serviceworkers/Headers.idl b/Source/modules/serviceworkers/Headers.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..83388530f5f5319cccf05c6805a4c1140c4c7361
|
| --- /dev/null
|
| +++ b/Source/modules/serviceworkers/Headers.idl
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// http://fetch.spec.whatwg.org/#headers-class
|
| +[
|
| + Constructor,
|
| + Constructor(Headers input),
|
| + Constructor(Dictionary input),
|
| + RuntimeEnabled=ServiceWorker,
|
| + Exposed=ServiceWorker,
|
| + RaisesException=Constructor
|
| +] interface Headers {
|
| + [RaisesException] void append(ByteString name, ByteString value);
|
| + [ImplementedAs=remove, RaisesException] void delete(ByteString key);
|
| + [TreatReturnedNullStringAs=Null, RaisesException] ByteString? get(ByteString key);
|
| + [RaisesException] sequence<ByteString> getAll(ByteString name);
|
| + [RaisesException] boolean has(ByteString key);
|
| + [RaisesException] void set(ByteString key, ByteString value);
|
| +
|
| + // The following are not defined in the spec yet.
|
| + // https://www.w3.org/Bugs/Public/show_bug.cgi?id=26102
|
| + readonly attribute unsigned long size;
|
| + void forEach(HeadersForEachCallback callback, optional any thisArg);
|
| +};
|
|
|