1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:07:44 +00:00

LibWeb: Implement '5.1. Headers class' from the Fetch API :^)

This commit is contained in:
Linus Groh 2022-07-19 00:19:24 +01:00
parent b5ab1f6b4a
commit ed49b66f25
9 changed files with 516 additions and 0 deletions

View file

@ -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>;
};