summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Headers.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Fetch/Headers.idl')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Headers.idl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Headers.idl b/Userland/Libraries/LibWeb/Fetch/Headers.idl
new file mode 100644
index 0000000000..f2dbd9e4c0
--- /dev/null
+++ b/Userland/Libraries/LibWeb/Fetch/Headers.idl
@@ -0,0 +1,13 @@
+typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit;
+
+[Exposed=(Window,Worker)]
+interface Headers {
+ constructor(optional HeadersInit init);
+
+ undefined append(ByteString name, ByteString value);
+ undefined delete(ByteString name);
+ ByteString? get(ByteString name);
+ boolean has(ByteString name);
+ undefined set(ByteString name, ByteString value);
+ iterable<ByteString, ByteString>;
+};