mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
7f9ddcf420
Since BodyInit and Headers are tightly coupled to both Request and Response, I chose to do all of them at once instead of introducing a bunch of temporary conversion glue code.
14 lines
500 B
Text
14 lines
500 B
Text
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>;
|
|
};
|