mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibWeb: Implement '5.1. Headers class' from the Fetch API :^)
This commit is contained in:
parent
b5ab1f6b4a
commit
ed49b66f25
9 changed files with 516 additions and 0 deletions
13
Userland/Libraries/LibWeb/Fetch/Headers.idl
Normal file
13
Userland/Libraries/LibWeb/Fetch/Headers.idl
Normal 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>;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue