summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Headers.idl
blob: 43dedffcadd7ce50db2f406ce065ecd870c3d103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) HeadersInit;

[Exposed=(Window,Worker), UseNewAKString]
interface Headers {
    constructor(optional HeadersInit init);

    undefined append(ByteString name, ByteString value);
    undefined delete(ByteString name);
    ByteString? get(ByteString name);
    sequence<ByteString> getSetCookie();
    boolean has(ByteString name);
    undefined set(ByteString name, ByteString value);
    iterable<ByteString, ByteString>;
};